feat: add STEP-093 runtime validation tooling

This commit is contained in:
tei
2026-09-24 14:39:39 +09:00
parent 8a5d88008c
commit b3ec8edc87
20 changed files with 765 additions and 24 deletions

View File

@@ -729,7 +729,7 @@ jni::jboolean NativeMapView::setContinuousLayerRange(JNIEnv& env,
jni::Local<jni::Array<jni::String>> NativeMapView::getRetainedUnderlayDiagnostics(JNIEnv& env) {
const auto snapshot = map->getRetainedUnderlayDiagnostics();
const std::array<std::string, 20> values = {
const std::array<std::string, 39> values = {
snapshot.enabled ? "true" : "false",
std::to_string(snapshot.build),
std::to_string(snapshot.reuse),
@@ -742,14 +742,33 @@ jni::Local<jni::Array<jni::String>> NativeMapView::getRetainedUnderlayDiagnostic
snapshot.endLayerId,
std::to_string(snapshot.startIndex),
std::to_string(snapshot.endIndex),
std::to_string(snapshot.continuousBegin),
std::to_string(snapshot.continuousEndExclusive),
snapshot.bottomPresent ? "true" : "false",
snapshot.bottomCacheState,
std::to_string(snapshot.bottomBuild),
std::to_string(snapshot.bottomReuse),
std::to_string(snapshot.bottomInvalidation),
snapshot.bottomLastInvalidationReason,
std::to_string(snapshot.bottomTextureCreate),
std::to_string(snapshot.bottomCompositeCreate),
std::to_string(snapshot.bottomResourceRelease),
snapshot.topPresent ? "true" : "false",
snapshot.topCacheState,
std::to_string(snapshot.topBuild),
std::to_string(snapshot.topReuse),
std::to_string(snapshot.topInvalidation),
snapshot.topLastInvalidationReason,
std::to_string(snapshot.topTextureCreate),
std::to_string(snapshot.topCompositeCreate),
std::to_string(snapshot.topResourceRelease),
snapshot.rangeFallback ? "true" : "false",
snapshot.fastPathEligible ? "true" : "false",
snapshot.fastPathActive ? "true" : "false",
snapshot.fastPathFallbackReason,
std::to_string(snapshot.fastPathHit),
std::to_string(snapshot.fastPathMiss),
std::to_string(snapshot.fullCpuFrame),
};
auto result = jni::Array<jni::String>::New(env, values.size());
for (std::size_t index = 0; index < values.size(); ++index) {