react-native-inapp-inspector 2.5.11 → 2.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ar.md +0 -8
- package/README.de.md +0 -8
- package/README.es.md +0 -8
- package/README.fr.md +0 -8
- package/README.hi.md +0 -8
- package/README.ja.md +0 -8
- package/README.ko.md +0 -8
- package/README.md +54 -26
- package/README.pt-BR.md +0 -8
- package/README.ru.md +0 -8
- package/README.zh-CN.md +0 -8
- package/dist/commonjs/components/ConsoleLogCard.js +32 -26
- package/dist/commonjs/components/Inspector/AboutModal.js +1 -4
- package/dist/commonjs/components/Inspector/ConsoleTab.js +19 -14
- package/dist/commonjs/components/Inspector/InspectorHeader.js +6 -6
- package/dist/commonjs/components/Inspector/MainScreen.js +9 -6
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +187 -90
- package/dist/commonjs/components/Inspector/NetworkDetail.js +11 -8
- package/dist/commonjs/components/Inspector/NetworkTab.js +31 -32
- package/dist/commonjs/components/Inspector/PerformanceTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/PerformanceTab.js +652 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.js +256 -249
- package/dist/commonjs/components/Inspector/TabBar.js +17 -16
- package/dist/commonjs/components/LogCard.js +11 -8
- package/dist/commonjs/components/NetworkIcons.d.ts +6 -0
- package/dist/commonjs/components/NetworkIcons.js +35 -3
- package/dist/commonjs/constants/index.d.ts +1 -0
- package/dist/commonjs/constants/index.js +1 -1
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/helpers/index.d.ts +3 -0
- package/dist/commonjs/helpers/index.js +8 -6
- package/dist/commonjs/helpers/performanceSampler.d.ts +88 -0
- package/dist/commonjs/helpers/performanceSampler.js +1 -0
- package/dist/commonjs/helpers/remoteConfig.d.ts +0 -2
- package/dist/commonjs/helpers/remoteConfig.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -1
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -1
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -1
- package/dist/commonjs/i18n/locales/it.json +1 -1
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -1
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -1
- package/dist/commonjs/i18n/locales/mr.json +1 -1
- package/dist/commonjs/i18n/locales/nl.json +1 -1
- package/dist/commonjs/i18n/locales/pa.json +1 -1
- package/dist/commonjs/i18n/locales/pl.json +1 -1
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -1
- package/dist/commonjs/i18n/locales/te.json +1 -1
- package/dist/commonjs/i18n/locales/tr.json +1 -1
- package/dist/commonjs/i18n/locales/vi.json +1 -1
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.d.ts +3 -3
- package/dist/commonjs/index.js +3 -3
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +1 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +8 -0
- package/dist/esm/components/ConsoleLogCard.js +67 -61
- package/dist/esm/components/Inspector/AboutModal.js +14 -17
- package/dist/esm/components/Inspector/ConsoleTab.js +33 -28
- package/dist/esm/components/Inspector/InspectorHeader.js +6 -6
- package/dist/esm/components/Inspector/MainScreen.js +61 -58
- package/dist/esm/components/Inspector/MediaGalleryTab.js +254 -157
- package/dist/esm/components/Inspector/NetworkDetail.js +62 -59
- package/dist/esm/components/Inspector/NetworkTab.js +101 -102
- package/dist/esm/components/Inspector/PerformanceTab.d.ts +2 -0
- package/dist/esm/components/Inspector/PerformanceTab.js +652 -0
- package/dist/esm/components/Inspector/SettingsPanel.js +299 -292
- package/dist/esm/components/Inspector/TabBar.js +4 -3
- package/dist/esm/components/LogCard.js +37 -34
- package/dist/esm/components/NetworkIcons.d.ts +6 -0
- package/dist/esm/components/NetworkIcons.js +32 -0
- package/dist/esm/constants/index.d.ts +1 -0
- package/dist/esm/constants/index.js +1 -1
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/helpers/index.d.ts +3 -0
- package/dist/esm/helpers/index.js +8 -6
- package/dist/esm/helpers/performanceSampler.d.ts +88 -0
- package/dist/esm/helpers/performanceSampler.js +1 -0
- package/dist/esm/helpers/remoteConfig.d.ts +0 -2
- package/dist/esm/helpers/remoteConfig.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -1
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -1
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -1
- package/dist/esm/i18n/locales/it.json +1 -1
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -1
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -1
- package/dist/esm/i18n/locales/mr.json +1 -1
- package/dist/esm/i18n/locales/nl.json +1 -1
- package/dist/esm/i18n/locales/pa.json +1 -1
- package/dist/esm/i18n/locales/pl.json +1 -1
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -1
- package/dist/esm/i18n/locales/te.json +1 -1
- package/dist/esm/i18n/locales/tr.json +1 -1
- package/dist/esm/i18n/locales/vi.json +1 -1
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +8 -8
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +1 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +8 -0
- package/package.json +24 -1
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/results.bin +0 -1
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$activityEventListener$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/c93e459e24d856bde563ebb048265732/results.bin +0 -1
- package/android/build/.transforms/c93e459e24d856bde563ebb048265732/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +0 -10
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +0 -160
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +0 -212
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +0 -31
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +0 -22
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +0 -24
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +0 -19
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +0 -18
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +0 -300
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +0 -23
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +0 -20
- package/android/build/generated/source/codegen/schema.json +0 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$activityEventListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
- package/android/build/reports/problems/problems-report.html +0 -659
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$activityEventListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/dist/commonjs/a11y.d.ts +0 -2
- package/dist/commonjs/a11y.js +0 -1
- package/dist/commonjs/components/Inspector/A11yTab.d.ts +0 -2
- package/dist/commonjs/components/Inspector/A11yTab.js +0 -268
- package/dist/commonjs/components/Inspector/DeveloperSponsorCard.d.ts +0 -9
- package/dist/commonjs/components/Inspector/DeveloperSponsorCard.js +0 -52
- package/dist/commonjs/customHooks/a11yAdapter.d.ts +0 -11
- package/dist/commonjs/customHooks/a11yAdapter.js +0 -1
- package/dist/commonjs/helpers/sponsorService.d.ts +0 -20
- package/dist/commonjs/helpers/sponsorService.js +0 -1
- package/dist/esm/a11y.d.ts +0 -2
- package/dist/esm/a11y.js +0 -1
- package/dist/esm/components/Inspector/A11yTab.d.ts +0 -2
- package/dist/esm/components/Inspector/A11yTab.js +0 -268
- package/dist/esm/components/Inspector/DeveloperSponsorCard.d.ts +0 -9
- package/dist/esm/components/Inspector/DeveloperSponsorCard.js +0 -52
- package/dist/esm/customHooks/a11yAdapter.d.ts +0 -11
- package/dist/esm/customHooks/a11yAdapter.js +0 -1
- package/dist/esm/helpers/sponsorService.d.ts +0 -20
- package/dist/esm/helpers/sponsorService.js +0 -1
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(t,e,o,a){a===void 0&&(a=o);var i=Object.getOwnPropertyDescriptor(e,o);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,a,i)}):(function(t,e,o,a){a===void 0&&(a=o),t[a]=e[o]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),__importStar=this&&this.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(o){var a=[];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(a[a.length]=i);return a},t(e)};return function(e){if(e&&e.__esModule)return e;var o={};if(e!=null)for(var a=t(e),i=0;i<a.length;i++)a[i]!=="default"&&__createBinding(o,e,a[i]);return __setModuleDefault(o,e),o}})(),__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PerformanceTab=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),NetworkIcons_1=require("../NetworkIcons"),performanceSampler_1=require("../../helpers/performanceSampler"),NativeInspector_1=require("../../native/NativeInspector"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),i18n_1=require("../../i18n"),{width:WINDOW_WIDTH}=react_native_1.Dimensions.get("window"),CHART_WIDTH=WINDOW_WIDTH-56,CHART_HEIGHT=110,PerformanceTab=()=>{const{t}=(0,i18n_1.useTranslation)(),e=(0,performanceSampler_1.usePerformanceMonitor)(!0),[o,a]=(0,react_1.useState)("overview"),[i,b]=(0,react_1.useState)("all"),[g,C]=(0,react_1.useState)(null),_=(0,react_1.useMemo)(()=>{const r=e.frameHistory;if(r.length<2)return"";const n=Math.max(40,...r),s=CHART_WIDTH/(r.length-1);let p="";return r.forEach((T,d)=>{const y=d*s,m=CHART_HEIGHT-Math.min(T,n)/n*(CHART_HEIGHT-16)-8;d===0?p+=`M ${y.toFixed(1)} ${m.toFixed(1)}`:p+=` L ${y.toFixed(1)} ${m.toFixed(1)}`}),p},[e.frameHistory]),x=(0,react_1.useMemo)(()=>i==="all"?e.recentJanks:e.recentJanks.filter(r=>r.severity===i),[e.recentJanks,i]),f=async()=>{try{(0,NativeInspector_1.triggerNativeHaptic)("light");const r={title:"React Native In-App Inspector Performance Diagnostic Report",algorithm:"New Relic Apdex & Datadog RUM Mobile Vitals",generatedAt:new Date().toISOString(),sessionDurationSeconds:e.sessionDurationSec,engine:e.memory.engine,displayRefreshRate:`${e.refreshRateHz}Hz`,healthScore:`${e.healthScore}/100 (${e.healthStatus})`,apdex:{score:e.apdexScore,status:e.apdexStatus,targetThresholdT:"16.6ms",satisfiedFrames:e.satisfiedCount,toleratingSlowFrames:e.toleratingCount,frustratedFrozenFrames:e.frustratedCount},percentiles:e.percentiles,datadogVitals:{slowFrames:e.toleratingCount,frozenFrames:e.frustratedCount,longTasksOver50ms:e.longTaskCount},distribution:e.distribution,metrics:{currentFps:e.fps,averageFps:e.avgFps,minimumFps:e.minFps,maximumFps:e.maxFps,currentFrameDurationMs:`${e.frameDurationMs}ms`,targetFrameDurationMs:"16.6ms",headroomRemainingMs:`${e.budgetHeadroomMs}ms`,jankFramesCount:e.jankCount,frozenFramesCount:e.frozenCount,jankRatio:`${e.jankPercent}%`,jsEventLoopLagMs:`${e.jsEventLoopLagMs}ms`,averageJsLagMs:`${e.avgJsLagMs}ms`,peakJsLagMs:`${e.peakJsLagMs}ms`},memory:{usedHeapMb:`${e.memory.usedHeapMb} MB`,totalAllocatedMb:`${e.memory.totalAllocMb} MB`,peakHeapMb:`${e.memory.peakHeapMb} MB`,gcCollections:e.memory.gcCount??"N/A",gcCpuTimeMs:e.memory.gcTimeMs??"N/A"},engineDetails:e.engineDetails,recentJankEvents:e.recentJanks},n=`## \u26A1 RN In-App Inspector Performance Report (Datadog & New Relic)
|
|
2
|
+
- **Health Score**: ${e.healthScore}/100 (${e.healthStatus})
|
|
3
|
+
- **Apdex Score**: ${e.apdexScore} (${e.apdexStatus}) [T=16.6ms]
|
|
4
|
+
- **Percentiles**: p50: ${e.percentiles.p50Ms}ms | p90: ${e.percentiles.p90Ms}ms | p95: ${e.percentiles.p95Ms}ms | p99: ${e.percentiles.p99Ms}ms
|
|
5
|
+
- **Vitals Breakdown**: ${e.satisfiedCount} Satisfied | ${e.toleratingCount} Slow | ${e.frustratedCount} Frozen | ${e.longTaskCount} Long Tasks
|
|
6
|
+
- **FPS**: ${e.fps} current | ${e.avgFps} avg | ${e.minFps} min | ${e.maxFps} max
|
|
7
|
+
- **JS Event Loop Lag**: ${e.jsEventLoopLagMs}ms (Avg: ${e.avgJsLagMs}ms, Peak: ${e.peakJsLagMs}ms)
|
|
8
|
+
- **Memory**: ${e.memory.usedHeapMb} MB / ${e.memory.totalAllocMb} MB (Peak: ${e.memory.peakHeapMb} MB)
|
|
9
|
+
- **Engine**: ${e.memory.engine}
|
|
10
|
+
- **Session Duration**: ${e.sessionDurationSec}s`;await react_native_1.Share.share({title:t("perf.title","Performance & FPS Profiler Studio"),message:`${n}
|
|
11
|
+
|
|
12
|
+
\`\`\`json
|
|
13
|
+
${JSON.stringify(r,null,2)}
|
|
14
|
+
\`\`\``})}catch{(0,toast_1.showToast)(t("perf.shareUnavailable","Share unavailable"))}},v=()=>{(0,NativeInspector_1.triggerNativeHaptic)("light");const r=`\u26A1 Performance: ${e.healthScore}/100 (${e.healthStatus}) | Apdex: ${e.apdexScore} | ${e.fps} FPS (Avg ${e.avgFps}) | p95: ${e.percentiles.p95Ms}ms | JS Lag: ${e.jsEventLoopLagMs}ms | Datadog Vitals: ${e.satisfiedCount}S / ${e.toleratingCount}T / ${e.frustratedCount}F / ${e.longTaskCount}LT`;(0,helpers_1.copyToClipboard)(r,t("perf.title","Performance Summary")),(0,toast_1.showToast)(t("perf.summaryCopied","Performance summary copied to clipboard"))},l=e.healthStatus==="EXCELLENT"?AppColors_1.AppColors.green600:e.healthStatus==="GOOD"?AppColors_1.AppColors.sky600:e.healthStatus==="FAIR"?AppColors_1.AppColors.amber500:AppColors_1.AppColors.red500,c=e.fps>=55?AppColors_1.AppColors.green600:e.fps>=40?AppColors_1.AppColors.amber500:AppColors_1.AppColors.red500,u=e.jsEventLoopLagMs<=4?AppColors_1.AppColors.green600:e.jsEventLoopLagMs<=20?AppColors_1.AppColors.amber500:AppColors_1.AppColors.red500;return<react_native_1.ScrollView style={styles.perfContainer}contentContainerStyle={styles.perfContent}showsVerticalScrollIndicator={!1}>
|
|
15
|
+
|
|
16
|
+
<react_native_1.View style={styles.topToolbar}>
|
|
17
|
+
<react_native_1.View style={styles.engineBadgeRow}>
|
|
18
|
+
<react_native_1.View style={[styles.enginePill,{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:`${AppColors_1.AppColors.purple}30`}]}>
|
|
19
|
+
<NetworkIcons_1.CpuChipIcon size={12}color={AppColors_1.AppColors.purple}/>
|
|
20
|
+
<react_native_1.Text style={[styles.enginePillText,{color:AppColors_1.AppColors.purple}]}>
|
|
21
|
+
{e.memory.engine}
|
|
22
|
+
</react_native_1.Text>
|
|
23
|
+
</react_native_1.View>
|
|
24
|
+
<react_native_1.View style={[styles.enginePill,{backgroundColor:`${AppColors_1.AppColors.sky600}14`,borderColor:`${AppColors_1.AppColors.sky600}30`}]}>
|
|
25
|
+
<NetworkIcons_1.SpeedometerIcon size={12}color={AppColors_1.AppColors.sky600}/>
|
|
26
|
+
<react_native_1.Text style={[styles.enginePillText,{color:AppColors_1.AppColors.sky600}]}>
|
|
27
|
+
{t("perf.target60Fps","60 FPS Target")}
|
|
28
|
+
</react_native_1.Text>
|
|
29
|
+
</react_native_1.View>
|
|
30
|
+
</react_native_1.View>
|
|
31
|
+
|
|
32
|
+
<react_native_1.View style={styles.topActionsRow}>
|
|
33
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),e.triggerGC(),(0,toast_1.showToast)(t("perf.gcTriggered","Garbage collection triggered"))}}style={styles.topActionBtn}accessibilityLabel={t("perf.triggerGc","GC")}>
|
|
34
|
+
<NetworkIcons_1.FlameIcon size={12}color={AppColors_1.AppColors.amber500}/>
|
|
35
|
+
<react_native_1.Text style={[styles.topActionBtnText,{color:AppColors_1.AppColors.amber500}]}>
|
|
36
|
+
{t("perf.triggerGc","GC")}
|
|
37
|
+
</react_native_1.Text>
|
|
38
|
+
</TouchableScale_1.default>
|
|
39
|
+
|
|
40
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),e.resetStats(),(0,toast_1.showToast)(t("perf.statsReset","Performance counters reset"))}}style={styles.topActionBtn}accessibilityLabel={t("perf.resetStats","Reset")}>
|
|
41
|
+
<NetworkIcons_1.ResetIcon size={12}color={AppColors_1.AppColors.grayText}/>
|
|
42
|
+
</TouchableScale_1.default>
|
|
43
|
+
|
|
44
|
+
<TouchableScale_1.default onPress={v}style={styles.topActionBtn}accessibilityLabel={t("perf.copySummary","Copy")}>
|
|
45
|
+
<NetworkIcons_1.CopyIcon size={12}color={AppColors_1.AppColors.grayTextStrong}/>
|
|
46
|
+
</TouchableScale_1.default>
|
|
47
|
+
|
|
48
|
+
<TouchableScale_1.default onPress={f}style={[styles.topActionBtn,{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:`${AppColors_1.AppColors.purple}35`}]}accessibilityLabel={t("perf.exportReport","Export")}>
|
|
49
|
+
<NetworkIcons_1.ShareIcon size={12}color={AppColors_1.AppColors.purple}/>
|
|
50
|
+
<react_native_1.Text style={[styles.topActionBtnText,{color:AppColors_1.AppColors.purple}]}>
|
|
51
|
+
{t("perf.exportReport","Export")}
|
|
52
|
+
</react_native_1.Text>
|
|
53
|
+
</TouchableScale_1.default>
|
|
54
|
+
</react_native_1.View>
|
|
55
|
+
</react_native_1.View>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<react_native_1.View style={styles.heroScoreCard}>
|
|
59
|
+
<react_native_1.View style={styles.scoreRow}>
|
|
60
|
+
<react_native_1.View style={styles.scoreCircleWrapper}>
|
|
61
|
+
<react_native_1.View style={[styles.scoreCircle,{borderColor:l,backgroundColor:`${l}12`}]}>
|
|
62
|
+
<react_native_1.Text style={[styles.scoreNumber,{color:l}]}>
|
|
63
|
+
{e.healthScore}
|
|
64
|
+
</react_native_1.Text>
|
|
65
|
+
<react_native_1.Text style={styles.scoreMax}>/100</react_native_1.Text>
|
|
66
|
+
</react_native_1.View>
|
|
67
|
+
</react_native_1.View>
|
|
68
|
+
|
|
69
|
+
<react_native_1.View style={styles.scoreDetails}>
|
|
70
|
+
<react_native_1.View style={styles.scoreHeaderRow}>
|
|
71
|
+
<react_native_1.Text style={[styles.scoreStatusLabel,{color:l}]}>
|
|
72
|
+
{e.healthStatus==="EXCELLENT"?t("perf.statusExcellent","EXCELLENT"):e.healthStatus==="GOOD"?t("perf.statusGood","GOOD"):e.healthStatus==="FAIR"?t("perf.statusFair","FAIR"):t("perf.statusPoor","POOR")}
|
|
73
|
+
</react_native_1.Text>
|
|
74
|
+
<react_native_1.View style={[styles.liveDotPill,{backgroundColor:`${c}18`}]}>
|
|
75
|
+
<react_native_1.View style={[styles.liveDot,{backgroundColor:c}]}/>
|
|
76
|
+
<react_native_1.Text style={[styles.liveDotText,{color:c}]}>
|
|
77
|
+
{t("perf.liveApm","LIVE APM")}
|
|
78
|
+
</react_native_1.Text>
|
|
79
|
+
</react_native_1.View>
|
|
80
|
+
</react_native_1.View>
|
|
81
|
+
<react_native_1.Text style={styles.scoreDesc}>
|
|
82
|
+
{e.healthScore>=88?t("perf.descExcellent","UI and JS threads are buttery smooth. Zero performance bottlenecks detected."):e.healthScore>=72?t("perf.descGood","Good performance with occasional frame drops during heavy operations."):t("perf.descPoor","Performance jank detected. JS event loop is being blocked by synchronous tasks.")}
|
|
83
|
+
</react_native_1.Text>
|
|
84
|
+
<react_native_1.View style={styles.sessionMetaRow}>
|
|
85
|
+
<react_native_1.Text style={styles.sessionDurationText}>
|
|
86
|
+
⏱️ {t("perf.session","Session")}: {e.sessionDurationSec}s
|
|
87
|
+
</react_native_1.Text>
|
|
88
|
+
<react_native_1.View style={[styles.apdexBadge,{backgroundColor:`${l}15`}]}>
|
|
89
|
+
<react_native_1.Text style={[styles.apdexBadgeText,{color:l}]}>
|
|
90
|
+
{t("perf.apdex","Apdex")}: {e.apdexScore} ({e.apdexStatus})
|
|
91
|
+
</react_native_1.Text>
|
|
92
|
+
</react_native_1.View>
|
|
93
|
+
</react_native_1.View>
|
|
94
|
+
</react_native_1.View>
|
|
95
|
+
</react_native_1.View>
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
<react_native_1.View style={styles.metricGrid}>
|
|
99
|
+
|
|
100
|
+
<react_native_1.View style={styles.metricCard}>
|
|
101
|
+
<react_native_1.View style={styles.metricCardHeader}>
|
|
102
|
+
<NetworkIcons_1.SpeedometerIcon size={13}color={c}/>
|
|
103
|
+
<react_native_1.Text style={styles.metricCardLabel}>{t("perf.uiFps","UI FPS")}</react_native_1.Text>
|
|
104
|
+
</react_native_1.View>
|
|
105
|
+
<react_native_1.Text style={[styles.metricCardValue,{color:c}]}>
|
|
106
|
+
{e.fps}
|
|
107
|
+
</react_native_1.Text>
|
|
108
|
+
<react_native_1.Text style={styles.metricCardSub}>
|
|
109
|
+
{t("perf.avg","Avg")}: {e.avgFps} • {t("perf.min","Min")}: {e.minFps}
|
|
110
|
+
</react_native_1.Text>
|
|
111
|
+
</react_native_1.View>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
<react_native_1.View style={styles.metricCard}>
|
|
115
|
+
<react_native_1.View style={styles.metricCardHeader}>
|
|
116
|
+
<NetworkIcons_1.PulseGraphIcon size={13}color={AppColors_1.AppColors.sky600}/>
|
|
117
|
+
<react_native_1.Text style={styles.metricCardLabel}>{t("perf.frameTime","Frame Time")}</react_native_1.Text>
|
|
118
|
+
</react_native_1.View>
|
|
119
|
+
<react_native_1.Text style={[styles.metricCardValue,{color:AppColors_1.AppColors.sky600}]}>
|
|
120
|
+
{e.frameDurationMs}
|
|
121
|
+
<react_native_1.Text style={styles.metricUnit}>ms</react_native_1.Text>
|
|
122
|
+
</react_native_1.Text>
|
|
123
|
+
<react_native_1.Text style={styles.metricCardSub}>
|
|
124
|
+
{t("perf.target","Target")}: 16.6ms (60fps)
|
|
125
|
+
</react_native_1.Text>
|
|
126
|
+
</react_native_1.View>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
<react_native_1.View style={styles.metricCard}>
|
|
130
|
+
<react_native_1.View style={styles.metricCardHeader}>
|
|
131
|
+
<NetworkIcons_1.CpuChipIcon size={13}color={u}/>
|
|
132
|
+
<react_native_1.Text style={styles.metricCardLabel}>{t("perf.jsThreadLag","JS Thread Lag")}</react_native_1.Text>
|
|
133
|
+
</react_native_1.View>
|
|
134
|
+
<react_native_1.Text style={[styles.metricCardValue,{color:u}]}>
|
|
135
|
+
{e.jsEventLoopLagMs}
|
|
136
|
+
<react_native_1.Text style={styles.metricUnit}>ms</react_native_1.Text>
|
|
137
|
+
</react_native_1.Text>
|
|
138
|
+
<react_native_1.Text style={styles.metricCardSub}>
|
|
139
|
+
{t("perf.peak","Peak")}: {e.peakJsLagMs}ms
|
|
140
|
+
</react_native_1.Text>
|
|
141
|
+
</react_native_1.View>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<react_native_1.View style={styles.metricCard}>
|
|
145
|
+
<react_native_1.View style={styles.metricCardHeader}>
|
|
146
|
+
<NetworkIcons_1.MemoryRamIcon size={13}color={AppColors_1.AppColors.purple}/>
|
|
147
|
+
<react_native_1.Text style={styles.metricCardLabel}>{t("perf.jsHeap","JS Heap")}</react_native_1.Text>
|
|
148
|
+
</react_native_1.View>
|
|
149
|
+
<react_native_1.Text style={[styles.metricCardValue,{color:AppColors_1.AppColors.purple}]}>
|
|
150
|
+
{e.memory.isAvailable?<>
|
|
151
|
+
{e.memory.usedHeapMb}
|
|
152
|
+
<react_native_1.Text style={styles.metricUnit}>MB</react_native_1.Text>
|
|
153
|
+
</>:<react_native_1.Text style={{fontSize:12,color:AppColors_1.AppColors.grayTextWeak}}>N/A</react_native_1.Text>}
|
|
154
|
+
</react_native_1.Text>
|
|
155
|
+
<react_native_1.Text style={styles.metricCardSub}numberOfLines={1}>
|
|
156
|
+
{e.memory.isAvailable?`${t("perf.peak","Peak")}: ${e.memory.peakHeapMb}MB`:t("perf.engineProtected","Engine Protected")}
|
|
157
|
+
</react_native_1.Text>
|
|
158
|
+
</react_native_1.View>
|
|
159
|
+
</react_native_1.View>
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
<react_native_1.View style={styles.budgetBarContainer}>
|
|
163
|
+
<react_native_1.View style={styles.budgetHeaderRow}>
|
|
164
|
+
<react_native_1.Text style={styles.budgetLabel}>{t("perf.vsyncBudgetConsumption","16.6ms Vsync Budget Consumption")}</react_native_1.Text>
|
|
165
|
+
<react_native_1.Text style={[styles.budgetPercentText,{color:e.frameDurationMs<=16.6?AppColors_1.AppColors.green600:AppColors_1.AppColors.amber500}]}>
|
|
166
|
+
{e.frameDurationMs}ms ({e.budgetUsedPercent}%)
|
|
167
|
+
</react_native_1.Text>
|
|
168
|
+
</react_native_1.View>
|
|
169
|
+
<react_native_1.View style={styles.budgetTrack}>
|
|
170
|
+
<react_native_1.View style={[styles.budgetFill,{width:`${Math.min(100,e.frameDurationMs/16.6*100)}%`,backgroundColor:e.frameDurationMs<=16.6?AppColors_1.AppColors.green600:e.frameDurationMs<=25?AppColors_1.AppColors.amber500:AppColors_1.AppColors.red500}]}/>
|
|
171
|
+
</react_native_1.View>
|
|
172
|
+
<react_native_1.View style={styles.budgetFooterRow}>
|
|
173
|
+
<react_native_1.Text style={styles.budgetFooterText}>
|
|
174
|
+
{e.budgetHeadroomMs>0?`\u26A1 +${e.budgetHeadroomMs}ms ${t("perf.budgetHeadroomAvailable","budget headroom available")}`:`\u26A0\uFE0F ${t("perf.budgetExceededBy","Budget exceeded by")} ${(e.frameDurationMs-16.6).toFixed(1)}ms`}
|
|
175
|
+
</react_native_1.Text>
|
|
176
|
+
<react_native_1.Text style={styles.budgetTargetText}>{t("perf.budgetTarget","Budget: 16.6ms")}</react_native_1.Text>
|
|
177
|
+
</react_native_1.View>
|
|
178
|
+
</react_native_1.View>
|
|
179
|
+
</react_native_1.View>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={styles.subTabsContent}style={styles.subTabsScrollView}>
|
|
183
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),a("overview")}}style={[styles.subTabPill,o==="overview"&&styles.subTabPillActive]}>
|
|
184
|
+
<NetworkIcons_1.SpeedometerIcon size={12}color={o==="overview"?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}/>
|
|
185
|
+
<react_native_1.Text style={[styles.subTabPillText,o==="overview"&&styles.subTabPillTextActive]}>
|
|
186
|
+
{t("perf.tabOverview","Overview & Vitals")}
|
|
187
|
+
</react_native_1.Text>
|
|
188
|
+
</react_native_1.TouchableOpacity>
|
|
189
|
+
|
|
190
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),a("percentiles")}}style={[styles.subTabPill,o==="percentiles"&&styles.subTabPillActive]}>
|
|
191
|
+
<NetworkIcons_1.PulseGraphIcon size={12}color={o==="percentiles"?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}/>
|
|
192
|
+
<react_native_1.Text style={[styles.subTabPillText,o==="percentiles"&&styles.subTabPillTextActive]}>
|
|
193
|
+
{t("perf.tabPercentiles","Percentiles & Latency")}
|
|
194
|
+
</react_native_1.Text>
|
|
195
|
+
</react_native_1.TouchableOpacity>
|
|
196
|
+
|
|
197
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),a("engine")}}style={[styles.subTabPill,o==="engine"&&styles.subTabPillActive]}>
|
|
198
|
+
<NetworkIcons_1.CpuChipIcon size={12}color={o==="engine"?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}/>
|
|
199
|
+
<react_native_1.Text style={[styles.subTabPillText,o==="engine"&&styles.subTabPillTextActive]}>
|
|
200
|
+
{t("perf.tabEngine","Engine & Heap")}
|
|
201
|
+
</react_native_1.Text>
|
|
202
|
+
</react_native_1.TouchableOpacity>
|
|
203
|
+
|
|
204
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),a("janks")}}style={[styles.subTabPill,o==="janks"&&styles.subTabPillActive]}>
|
|
205
|
+
<react_native_1.View style={[styles.jankCountBadge,{backgroundColor:e.recentJanks.length>0?`${AppColors_1.AppColors.red500}25`:`${AppColors_1.AppColors.green600}25`}]}>
|
|
206
|
+
<react_native_1.Text style={[styles.jankCountBadgeText,{color:e.recentJanks.length>0?AppColors_1.AppColors.red500:AppColors_1.AppColors.green600}]}>
|
|
207
|
+
{e.recentJanks.length}
|
|
208
|
+
</react_native_1.Text>
|
|
209
|
+
</react_native_1.View>
|
|
210
|
+
<react_native_1.Text style={[styles.subTabPillText,o==="janks"&&styles.subTabPillTextActive]}>
|
|
211
|
+
{t("perf.tabJanks","Janks Log")}
|
|
212
|
+
</react_native_1.Text>
|
|
213
|
+
</react_native_1.TouchableOpacity>
|
|
214
|
+
|
|
215
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),a("benchmark")}}style={[styles.subTabPill,o==="benchmark"&&styles.subTabPillActive]}>
|
|
216
|
+
<NetworkIcons_1.FlameIcon size={12}color={o==="benchmark"?AppColors_1.AppColors.amber500:AppColors_1.AppColors.grayTextWeak}/>
|
|
217
|
+
<react_native_1.Text style={[styles.subTabPillText,o==="benchmark"&&styles.subTabPillTextActive]}>
|
|
218
|
+
{t("perf.tabBenchmark","Stress Tests")}
|
|
219
|
+
</react_native_1.Text>
|
|
220
|
+
</react_native_1.TouchableOpacity>
|
|
221
|
+
</react_native_1.ScrollView>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
{o==="overview"&&<>
|
|
225
|
+
|
|
226
|
+
<react_native_1.View style={styles.sectionCard}>
|
|
227
|
+
<react_native_1.View style={styles.sectionHeader}>
|
|
228
|
+
<react_native_1.View style={styles.sectionTitleRow}>
|
|
229
|
+
<NetworkIcons_1.PulseGraphIcon size={15}color={AppColors_1.AppColors.sky600}/>
|
|
230
|
+
<react_native_1.Text style={styles.sectionTitle}>{t("perf.distributionTitle","Frame Duration Distribution (Histogram)")}</react_native_1.Text>
|
|
231
|
+
</react_native_1.View>
|
|
232
|
+
<react_native_1.Text style={styles.histogramTotalText}>
|
|
233
|
+
{e.distribution.totalSamples} {t("perf.framesSampled","frames sampled")}
|
|
234
|
+
</react_native_1.Text>
|
|
235
|
+
</react_native_1.View>
|
|
236
|
+
|
|
237
|
+
<react_native_1.View style={styles.histogramList}>
|
|
238
|
+
|
|
239
|
+
<react_native_1.View style={styles.histogramRow}>
|
|
240
|
+
<react_native_1.View style={styles.histogramLabelCol}>
|
|
241
|
+
<react_native_1.Text style={styles.histogramLabel}>≤16.6ms (60+ FPS)</react_native_1.Text>
|
|
242
|
+
<react_native_1.Text style={styles.histogramSub}>{t("perf.ultraSmooth","Ultra-smooth")}</react_native_1.Text>
|
|
243
|
+
</react_native_1.View>
|
|
244
|
+
<react_native_1.View style={styles.histogramTrack}>
|
|
245
|
+
<react_native_1.View style={[styles.histogramFill,{width:`${Math.min(100,e.distribution.ultraSmoothCount/Math.max(1,e.distribution.totalSamples)*100)}%`,backgroundColor:AppColors_1.AppColors.green600}]}/>
|
|
246
|
+
</react_native_1.View>
|
|
247
|
+
<react_native_1.Text style={[styles.histogramCountText,{color:AppColors_1.AppColors.green600}]}>
|
|
248
|
+
{e.distribution.ultraSmoothCount} ({Math.round(e.distribution.ultraSmoothCount/Math.max(1,e.distribution.totalSamples)*100)}%)
|
|
249
|
+
</react_native_1.Text>
|
|
250
|
+
</react_native_1.View>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<react_native_1.View style={styles.histogramRow}>
|
|
254
|
+
<react_native_1.View style={styles.histogramLabelCol}>
|
|
255
|
+
<react_native_1.Text style={styles.histogramLabel}>16.7–24ms (40–60 FPS)</react_native_1.Text>
|
|
256
|
+
<react_native_1.Text style={styles.histogramSub}>{t("perf.normalUiLayout","Normal UI Layout")}</react_native_1.Text>
|
|
257
|
+
</react_native_1.View>
|
|
258
|
+
<react_native_1.View style={styles.histogramTrack}>
|
|
259
|
+
<react_native_1.View style={[styles.histogramFill,{width:`${Math.min(100,e.distribution.smoothCount/Math.max(1,e.distribution.totalSamples)*100)}%`,backgroundColor:AppColors_1.AppColors.sky600}]}/>
|
|
260
|
+
</react_native_1.View>
|
|
261
|
+
<react_native_1.Text style={[styles.histogramCountText,{color:AppColors_1.AppColors.sky600}]}>
|
|
262
|
+
{e.distribution.smoothCount} ({Math.round(e.distribution.smoothCount/Math.max(1,e.distribution.totalSamples)*100)}%)
|
|
263
|
+
</react_native_1.Text>
|
|
264
|
+
</react_native_1.View>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
<react_native_1.View style={styles.histogramRow}>
|
|
268
|
+
<react_native_1.View style={styles.histogramLabelCol}>
|
|
269
|
+
<react_native_1.Text style={styles.histogramLabel}>24.1–34ms (30–40 FPS)</react_native_1.Text>
|
|
270
|
+
<react_native_1.Text style={styles.histogramSub}>{t("perf.minorVariance","Minor Variance")}</react_native_1.Text>
|
|
271
|
+
</react_native_1.View>
|
|
272
|
+
<react_native_1.View style={styles.histogramTrack}>
|
|
273
|
+
<react_native_1.View style={[styles.histogramFill,{width:`${Math.min(100,e.distribution.degradedCount/Math.max(1,e.distribution.totalSamples)*100)}%`,backgroundColor:AppColors_1.AppColors.amber500}]}/>
|
|
274
|
+
</react_native_1.View>
|
|
275
|
+
<react_native_1.Text style={[styles.histogramCountText,{color:AppColors_1.AppColors.amber500}]}>
|
|
276
|
+
{e.distribution.degradedCount} ({Math.round(e.distribution.degradedCount/Math.max(1,e.distribution.totalSamples)*100)}%)
|
|
277
|
+
</react_native_1.Text>
|
|
278
|
+
</react_native_1.View>
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
<react_native_1.View style={styles.histogramRow}>
|
|
282
|
+
<react_native_1.View style={styles.histogramLabelCol}>
|
|
283
|
+
<react_native_1.Text style={styles.histogramLabel}>34.1–66ms (15–30 FPS)</react_native_1.Text>
|
|
284
|
+
<react_native_1.Text style={styles.histogramSub}>{t("perf.droppedFrame","Dropped Frame")}</react_native_1.Text>
|
|
285
|
+
</react_native_1.View>
|
|
286
|
+
<react_native_1.View style={styles.histogramTrack}>
|
|
287
|
+
<react_native_1.View style={[styles.histogramFill,{width:`${Math.min(100,e.distribution.stutteredCount/Math.max(1,e.distribution.totalSamples)*100)}%`,backgroundColor:AppColors_1.AppColors.red500}]}/>
|
|
288
|
+
</react_native_1.View>
|
|
289
|
+
<react_native_1.Text style={[styles.histogramCountText,{color:AppColors_1.AppColors.red500}]}>
|
|
290
|
+
{e.distribution.stutteredCount} ({Math.round(e.distribution.stutteredCount/Math.max(1,e.distribution.totalSamples)*100)}%)
|
|
291
|
+
</react_native_1.Text>
|
|
292
|
+
</react_native_1.View>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
<react_native_1.View style={styles.histogramRow}>
|
|
296
|
+
<react_native_1.View style={styles.histogramLabelCol}>
|
|
297
|
+
<react_native_1.Text style={styles.histogramLabel}>>66.6ms (<15 FPS)</react_native_1.Text>
|
|
298
|
+
<react_native_1.Text style={styles.histogramSub}>{t("perf.frozenFrame","Frozen Frame")}</react_native_1.Text>
|
|
299
|
+
</react_native_1.View>
|
|
300
|
+
<react_native_1.View style={styles.histogramTrack}>
|
|
301
|
+
<react_native_1.View style={[styles.histogramFill,{width:`${Math.min(100,e.distribution.frozenCount/Math.max(1,e.distribution.totalSamples)*100)}%`,backgroundColor:"#881337"}]}/>
|
|
302
|
+
</react_native_1.View>
|
|
303
|
+
<react_native_1.Text style={[styles.histogramCountText,{color:"#881337"}]}>
|
|
304
|
+
{e.distribution.frozenCount} ({Math.round(e.distribution.frozenCount/Math.max(1,e.distribution.totalSamples)*100)}%)
|
|
305
|
+
</react_native_1.Text>
|
|
306
|
+
</react_native_1.View>
|
|
307
|
+
</react_native_1.View>
|
|
308
|
+
</react_native_1.View>
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
<react_native_1.View style={styles.sectionCard}>
|
|
312
|
+
<react_native_1.View style={styles.sectionHeader}>
|
|
313
|
+
<react_native_1.View style={styles.sectionTitleRow}>
|
|
314
|
+
<NetworkIcons_1.SpeedometerIcon size={15}color={AppColors_1.AppColors.purple}/>
|
|
315
|
+
<react_native_1.Text style={styles.sectionTitle}>{t("perf.datadogVitalsTitle","Datadog & New Relic APM Vitals")}</react_native_1.Text>
|
|
316
|
+
</react_native_1.View>
|
|
317
|
+
<react_native_1.View style={[styles.targetBadge,{backgroundColor:`${l}18`}]}>
|
|
318
|
+
<react_native_1.Text style={[styles.targetBadgeText,{color:l}]}>
|
|
319
|
+
{t("perf.apdex","Apdex")}: {e.apdexScore} ({e.apdexStatus})
|
|
320
|
+
</react_native_1.Text>
|
|
321
|
+
</react_native_1.View>
|
|
322
|
+
</react_native_1.View>
|
|
323
|
+
|
|
324
|
+
<react_native_1.Text style={styles.sectionDesc}>
|
|
325
|
+
{t("perf.datadogVitalsDesc","Real-time Mobile APM metrics computed via official New Relic Apdex (T=16.6ms) and Datadog RUM Mobile Vitals algorithms.")}
|
|
326
|
+
</react_native_1.Text>
|
|
327
|
+
|
|
328
|
+
<react_native_1.View style={styles.datadogGrid}>
|
|
329
|
+
<react_native_1.View style={[styles.datadogPill,{borderColor:`${AppColors_1.AppColors.green600}30`,backgroundColor:`${AppColors_1.AppColors.green600}10`}]}>
|
|
330
|
+
<react_native_1.Text style={[styles.datadogCount,{color:AppColors_1.AppColors.green600}]}>{e.satisfiedCount}</react_native_1.Text>
|
|
331
|
+
<react_native_1.Text style={styles.datadogLabel}>{t("perf.satisfiedFrames","Satisfied (\u226416.6ms)")}</react_native_1.Text>
|
|
332
|
+
</react_native_1.View>
|
|
333
|
+
|
|
334
|
+
<react_native_1.View style={[styles.datadogPill,{borderColor:`${AppColors_1.AppColors.amber500}30`,backgroundColor:`${AppColors_1.AppColors.amber500}10`}]}>
|
|
335
|
+
<react_native_1.Text style={[styles.datadogCount,{color:AppColors_1.AppColors.amber500}]}>{e.toleratingCount}</react_native_1.Text>
|
|
336
|
+
<react_native_1.Text style={styles.datadogLabel}>{t("perf.slowFrames","Slow Frames (17-66ms)")}</react_native_1.Text>
|
|
337
|
+
</react_native_1.View>
|
|
338
|
+
|
|
339
|
+
<react_native_1.View style={[styles.datadogPill,{borderColor:`${AppColors_1.AppColors.red500}30`,backgroundColor:`${AppColors_1.AppColors.red500}10`}]}>
|
|
340
|
+
<react_native_1.Text style={[styles.datadogCount,{color:AppColors_1.AppColors.red500}]}>{e.frustratedCount}</react_native_1.Text>
|
|
341
|
+
<react_native_1.Text style={styles.datadogLabel}>{t("perf.frozenFrames","Frozen Frames (>66ms)")}</react_native_1.Text>
|
|
342
|
+
</react_native_1.View>
|
|
343
|
+
|
|
344
|
+
<react_native_1.View style={[styles.datadogPill,{borderColor:`${AppColors_1.AppColors.purple}30`,backgroundColor:`${AppColors_1.AppColors.purple}10`}]}>
|
|
345
|
+
<react_native_1.Text style={[styles.datadogCount,{color:AppColors_1.AppColors.purple}]}>{e.longTaskCount}</react_native_1.Text>
|
|
346
|
+
<react_native_1.Text style={styles.datadogLabel}>{t("perf.longTasks","JS Long Tasks (>50ms)")}</react_native_1.Text>
|
|
347
|
+
</react_native_1.View>
|
|
348
|
+
</react_native_1.View>
|
|
349
|
+
</react_native_1.View>
|
|
350
|
+
</>}
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
{o==="percentiles"&&<>
|
|
354
|
+
|
|
355
|
+
<react_native_1.View style={styles.sectionCard}>
|
|
356
|
+
<react_native_1.View style={styles.sectionHeader}>
|
|
357
|
+
<react_native_1.View style={styles.sectionTitleRow}>
|
|
358
|
+
<NetworkIcons_1.PulseGraphIcon size={15}color={AppColors_1.AppColors.purple}/>
|
|
359
|
+
<react_native_1.Text style={styles.sectionTitle}>{t("perf.percentilesTitle","Latency Percentile Matrix (p50 / p90 / p95 / p99)")}</react_native_1.Text>
|
|
360
|
+
</react_native_1.View>
|
|
361
|
+
<react_native_1.View style={styles.targetBadge}>
|
|
362
|
+
<react_native_1.Text style={styles.targetBadgeText}>{t("perf.percentilesSubtitle","Computed from Live Frames")}</react_native_1.Text>
|
|
363
|
+
</react_native_1.View>
|
|
364
|
+
</react_native_1.View>
|
|
365
|
+
<react_native_1.Text style={styles.sectionDesc}>
|
|
366
|
+
{t("perf.percentilesDesc","Exact mathematical distribution of frame times sampled from the active rolling window.")}
|
|
367
|
+
</react_native_1.Text>
|
|
368
|
+
|
|
369
|
+
<react_native_1.View style={styles.percentileGrid}>
|
|
370
|
+
<react_native_1.View style={styles.percentileCard}>
|
|
371
|
+
<react_native_1.Text style={styles.percentileTag}>{t("perf.p50Label","p50 (Median)")}</react_native_1.Text>
|
|
372
|
+
<react_native_1.Text style={[styles.percentileVal,{color:AppColors_1.AppColors.green600}]}>
|
|
373
|
+
{e.percentiles.p50Ms}
|
|
374
|
+
<react_native_1.Text style={styles.percentileUnit}>ms</react_native_1.Text>
|
|
375
|
+
</react_native_1.Text>
|
|
376
|
+
<react_native_1.Text style={styles.percentileSub}>{t("perf.p50Sub","50% of frames faster")}</react_native_1.Text>
|
|
377
|
+
</react_native_1.View>
|
|
378
|
+
|
|
379
|
+
<react_native_1.View style={styles.percentileCard}>
|
|
380
|
+
<react_native_1.Text style={styles.percentileTag}>{t("perf.p90Label","p90")}</react_native_1.Text>
|
|
381
|
+
<react_native_1.Text style={[styles.percentileVal,{color:AppColors_1.AppColors.sky600}]}>
|
|
382
|
+
{e.percentiles.p90Ms}
|
|
383
|
+
<react_native_1.Text style={styles.percentileUnit}>ms</react_native_1.Text>
|
|
384
|
+
</react_native_1.Text>
|
|
385
|
+
<react_native_1.Text style={styles.percentileSub}>{t("perf.p90Sub","90% of frames faster")}</react_native_1.Text>
|
|
386
|
+
</react_native_1.View>
|
|
387
|
+
|
|
388
|
+
<react_native_1.View style={styles.percentileCard}>
|
|
389
|
+
<react_native_1.Text style={styles.percentileTag}>{t("perf.p95Label","p95")}</react_native_1.Text>
|
|
390
|
+
<react_native_1.Text style={[styles.percentileVal,{color:e.percentiles.p95Ms<=20?AppColors_1.AppColors.green600:AppColors_1.AppColors.amber500}]}>
|
|
391
|
+
{e.percentiles.p95Ms}
|
|
392
|
+
<react_native_1.Text style={styles.percentileUnit}>ms</react_native_1.Text>
|
|
393
|
+
</react_native_1.Text>
|
|
394
|
+
<react_native_1.Text style={styles.percentileSub}>{t("perf.p95Sub","95% of frames faster")}</react_native_1.Text>
|
|
395
|
+
</react_native_1.View>
|
|
396
|
+
|
|
397
|
+
<react_native_1.View style={styles.percentileCard}>
|
|
398
|
+
<react_native_1.Text style={styles.percentileTag}>{t("perf.p99Label","p99 (Tail Latency)")}</react_native_1.Text>
|
|
399
|
+
<react_native_1.Text style={[styles.percentileVal,{color:e.percentiles.p99Ms<=33?AppColors_1.AppColors.amber500:AppColors_1.AppColors.red500}]}>
|
|
400
|
+
{e.percentiles.p99Ms}
|
|
401
|
+
<react_native_1.Text style={styles.percentileUnit}>ms</react_native_1.Text>
|
|
402
|
+
</react_native_1.Text>
|
|
403
|
+
<react_native_1.Text style={styles.percentileSub}>{t("perf.p99Sub","Worst 1% outlier frames")}</react_native_1.Text>
|
|
404
|
+
</react_native_1.View>
|
|
405
|
+
</react_native_1.View>
|
|
406
|
+
</react_native_1.View>
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
<react_native_1.View style={styles.sectionCard}>
|
|
410
|
+
<react_native_1.View style={styles.sectionHeader}>
|
|
411
|
+
<react_native_1.View style={styles.sectionTitleRow}>
|
|
412
|
+
<NetworkIcons_1.PulseGraphIcon size={15}color={AppColors_1.AppColors.purple}/>
|
|
413
|
+
<react_native_1.Text style={styles.sectionTitle}>{t("perf.realtimeFrameTimes","Real-Time Frame Times (50 Frames)")}</react_native_1.Text>
|
|
414
|
+
</react_native_1.View>
|
|
415
|
+
<react_native_1.View style={styles.targetBadge}>
|
|
416
|
+
<react_native_1.Text style={styles.targetBadgeText}>{t("perf.target60FpsLabel","16.6ms Target (60fps)")}</react_native_1.Text>
|
|
417
|
+
</react_native_1.View>
|
|
418
|
+
</react_native_1.View>
|
|
419
|
+
|
|
420
|
+
<react_native_1.View style={styles.chartWrapper}>
|
|
421
|
+
<react_native_svg_1.default width={CHART_WIDTH}height={CHART_HEIGHT}style={styles.chartSvg}>
|
|
422
|
+
<react_native_svg_1.Line x1="0"y1={CHART_HEIGHT-16.6/40*(CHART_HEIGHT-16)-8}x2={CHART_WIDTH}y2={CHART_HEIGHT-16.6/40*(CHART_HEIGHT-16)-8}stroke={AppColors_1.AppColors.green600}strokeWidth="1"strokeDasharray="4,4"opacity={.6}/>
|
|
423
|
+
<react_native_svg_1.Line x1="0"y1={CHART_HEIGHT-33.3/40*(CHART_HEIGHT-16)-8}x2={CHART_WIDTH}y2={CHART_HEIGHT-33.3/40*(CHART_HEIGHT-16)-8}stroke={AppColors_1.AppColors.red500}strokeWidth="1"strokeDasharray="3,3"opacity={.4}/>
|
|
424
|
+
|
|
425
|
+
{e.frameHistory.length>0&&e.frameHistory.map((r,n)=>{const s=Math.max(40,...e.frameHistory),p=CHART_WIDTH/Math.max(1,e.frameHistory.length),T=Math.max(2,p-1.5),d=Math.min(r,s)/s*(CHART_HEIGHT-20),y=n*p,m=CHART_HEIGHT-d-4,w=r<=18?AppColors_1.AppColors.green600:r<=33?AppColors_1.AppColors.amber500:AppColors_1.AppColors.red500;return<react_native_svg_1.Rect key={n}x={y}y={m}width={T}height={Math.max(2,d)}rx={1}fill={w}opacity={.75}/>})}
|
|
426
|
+
|
|
427
|
+
{_?<react_native_svg_1.Path d={_}fill="none"stroke={AppColors_1.AppColors.purple}strokeWidth="2"/>:null}
|
|
428
|
+
</react_native_svg_1.default>
|
|
429
|
+
|
|
430
|
+
<react_native_1.View style={styles.chartAxisRow}>
|
|
431
|
+
<react_native_1.Text style={styles.chartAxisLabel}>{t("perf.past50Frames","\u2190 Past 50 Frames")}</react_native_1.Text>
|
|
432
|
+
<react_native_1.Text style={styles.chartAxisLabel}>{t("perf.nowInstant","Now (Instantaneous) \u2192")}</react_native_1.Text>
|
|
433
|
+
</react_native_1.View>
|
|
434
|
+
</react_native_1.View>
|
|
435
|
+
|
|
436
|
+
<react_native_1.View style={styles.legendRow}>
|
|
437
|
+
<react_native_1.View style={styles.legendItem}>
|
|
438
|
+
<react_native_1.View style={[styles.legendDot,{backgroundColor:AppColors_1.AppColors.green600}]}/>
|
|
439
|
+
<react_native_1.Text style={styles.legendText}>{t("perf.smoothLegend","Smooth (<18ms)")}</react_native_1.Text>
|
|
440
|
+
</react_native_1.View>
|
|
441
|
+
<react_native_1.View style={styles.legendItem}>
|
|
442
|
+
<react_native_1.View style={[styles.legendDot,{backgroundColor:AppColors_1.AppColors.amber500}]}/>
|
|
443
|
+
<react_native_1.Text style={styles.legendText}>{t("perf.jankLegend","Jank (18-33ms)")}</react_native_1.Text>
|
|
444
|
+
</react_native_1.View>
|
|
445
|
+
<react_native_1.View style={styles.legendItem}>
|
|
446
|
+
<react_native_1.View style={[styles.legendDot,{backgroundColor:AppColors_1.AppColors.red500}]}/>
|
|
447
|
+
<react_native_1.Text style={styles.legendText}>{t("perf.frozenLegend","Frozen (>33ms)")}</react_native_1.Text>
|
|
448
|
+
</react_native_1.View>
|
|
449
|
+
</react_native_1.View>
|
|
450
|
+
</react_native_1.View>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
<react_native_1.View style={styles.sectionCard}>
|
|
454
|
+
<react_native_1.View style={styles.sectionHeader}>
|
|
455
|
+
<react_native_1.View style={styles.sectionTitleRow}>
|
|
456
|
+
<NetworkIcons_1.CpuChipIcon size={15}color={AppColors_1.AppColors.sky600}/>
|
|
457
|
+
<react_native_1.Text style={styles.sectionTitle}>{t("perf.jsResponsiveness","JS Thread Responsiveness")}</react_native_1.Text>
|
|
458
|
+
</react_native_1.View>
|
|
459
|
+
<react_native_1.View style={[styles.targetBadge,{backgroundColor:`${u}14`}]}>
|
|
460
|
+
<react_native_1.Text style={[styles.targetBadgeText,{color:u}]}>
|
|
461
|
+
{e.jsEventLoopLagMs<=2?t("perf.instantaneous","\u26A1 Instantaneous"):`${e.jsEventLoopLagMs} ${t("perf.lagUnit","ms Lag")}`}
|
|
462
|
+
</react_native_1.Text>
|
|
463
|
+
</react_native_1.View>
|
|
464
|
+
</react_native_1.View>
|
|
465
|
+
|
|
466
|
+
<react_native_1.View style={styles.lagBarsRow}>
|
|
467
|
+
{e.jsLagHistory.map((r,n)=>{const s=Math.min(48,Math.max(4,r*2.5)),p=r<=3?AppColors_1.AppColors.green600:r<=20?AppColors_1.AppColors.amber500:AppColors_1.AppColors.red500;return<react_native_1.View key={n}style={[styles.lagBar,{height:s,backgroundColor:p}]}/>})}
|
|
468
|
+
</react_native_1.View>
|
|
469
|
+
|
|
470
|
+
<react_native_1.View style={styles.lagInfoRow}>
|
|
471
|
+
<react_native_1.Text style={styles.lagInfoText}>
|
|
472
|
+
{t("perf.avgJsQueueLag","Average JS Queue Lag")}: <react_native_1.Text style={styles.boldText}>{e.avgJsLagMs}ms</react_native_1.Text>
|
|
473
|
+
</react_native_1.Text>
|
|
474
|
+
<react_native_1.Text style={styles.lagInfoText}>
|
|
475
|
+
{t("perf.peakLagSpike","Peak Lag Spike")}: <react_native_1.Text style={styles.boldText}>{e.peakJsLagMs}ms</react_native_1.Text>
|
|
476
|
+
</react_native_1.Text>
|
|
477
|
+
</react_native_1.View>
|
|
478
|
+
</react_native_1.View>
|
|
479
|
+
</>}
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
{o==="engine"&&<react_native_1.View style={styles.sectionCard}>
|
|
483
|
+
<react_native_1.View style={styles.sectionHeader}>
|
|
484
|
+
<react_native_1.View style={styles.sectionTitleRow}>
|
|
485
|
+
<NetworkIcons_1.MemoryRamIcon size={15}color={AppColors_1.AppColors.purple}/>
|
|
486
|
+
<react_native_1.Text style={styles.sectionTitle}>{t("perf.engineTelemetryTitle","Engine & Runtime Telemetry")}</react_native_1.Text>
|
|
487
|
+
</react_native_1.View>
|
|
488
|
+
<react_native_1.View style={[styles.targetBadge,{backgroundColor:`${AppColors_1.AppColors.purple}14`}]}>
|
|
489
|
+
<react_native_1.Text style={[styles.targetBadgeText,{color:AppColors_1.AppColors.purple}]}>
|
|
490
|
+
{e.engineDetails.engineName}
|
|
491
|
+
</react_native_1.Text>
|
|
492
|
+
</react_native_1.View>
|
|
493
|
+
</react_native_1.View>
|
|
494
|
+
<react_native_1.Text style={styles.sectionDesc}>
|
|
495
|
+
{t("perf.engineTelemetryDesc","Deep inspection of the active JavaScript Virtual Machine, memory allocations, and React Native architecture.")}
|
|
496
|
+
</react_native_1.Text>
|
|
497
|
+
|
|
498
|
+
<react_native_1.View style={styles.engineDetailsTable}>
|
|
499
|
+
<react_native_1.View style={styles.engineDetailRow}>
|
|
500
|
+
<react_native_1.Text style={styles.engineDetailKey}>{t("perf.jsEngine","JavaScript Engine")}</react_native_1.Text>
|
|
501
|
+
<react_native_1.Text style={styles.engineDetailVal}>{e.engineDetails.engineName}</react_native_1.Text>
|
|
502
|
+
</react_native_1.View>
|
|
503
|
+
|
|
504
|
+
<react_native_1.View style={styles.engineDetailRow}>
|
|
505
|
+
<react_native_1.Text style={styles.engineDetailKey}>{t("perf.architectureMode","Architecture Mode")}</react_native_1.Text>
|
|
506
|
+
<react_native_1.View style={[styles.enginePillMini,{backgroundColor:e.engineDetails.isFabric?`${AppColors_1.AppColors.green600}18`:`${AppColors_1.AppColors.sky600}18`}]}>
|
|
507
|
+
<react_native_1.Text style={[styles.enginePillMiniText,{color:e.engineDetails.isFabric?AppColors_1.AppColors.green600:AppColors_1.AppColors.sky600}]}>
|
|
508
|
+
{e.engineDetails.architectureName}
|
|
509
|
+
</react_native_1.Text>
|
|
510
|
+
</react_native_1.View>
|
|
511
|
+
</react_native_1.View>
|
|
512
|
+
|
|
513
|
+
<react_native_1.View style={styles.engineDetailRow}>
|
|
514
|
+
<react_native_1.Text style={styles.engineDetailKey}>{t("perf.turboModulesBridge","TurboModules Bridge")}</react_native_1.Text>
|
|
515
|
+
<react_native_1.Text style={[styles.engineDetailVal,{color:e.engineDetails.isTurboModules?AppColors_1.AppColors.green600:AppColors_1.AppColors.grayTextStrong}]}>
|
|
516
|
+
{e.engineDetails.isTurboModules?t("perf.turboModulesEnabled","\u26A1 Enabled (JSI Direct)"):t("perf.standardBridge","Standard Bridge")}
|
|
517
|
+
</react_native_1.Text>
|
|
518
|
+
</react_native_1.View>
|
|
519
|
+
|
|
520
|
+
<react_native_1.View style={styles.engineDetailRow}>
|
|
521
|
+
<react_native_1.Text style={styles.engineDetailKey}>{t("perf.liveHeapSize","Live Heap Size")}</react_native_1.Text>
|
|
522
|
+
<react_native_1.Text style={styles.engineDetailVal}>
|
|
523
|
+
{e.memory.isAvailable?`${e.memory.usedHeapMb} MB`:t("perf.engineProtected","Protected by Engine")}
|
|
524
|
+
</react_native_1.Text>
|
|
525
|
+
</react_native_1.View>
|
|
526
|
+
|
|
527
|
+
<react_native_1.View style={styles.engineDetailRow}>
|
|
528
|
+
<react_native_1.Text style={styles.engineDetailKey}>{t("perf.totalHeapAllocated","Total Heap Allocated")}</react_native_1.Text>
|
|
529
|
+
<react_native_1.Text style={styles.engineDetailVal}>
|
|
530
|
+
{e.memory.isAvailable?`${e.memory.totalAllocMb} MB`:t("perf.engineProtected","Protected by Engine")}
|
|
531
|
+
</react_native_1.Text>
|
|
532
|
+
</react_native_1.View>
|
|
533
|
+
|
|
534
|
+
<react_native_1.View style={styles.engineDetailRow}>
|
|
535
|
+
<react_native_1.Text style={styles.engineDetailKey}>{t("perf.sessionPeakHeap","Session Peak Heap")}</react_native_1.Text>
|
|
536
|
+
<react_native_1.Text style={styles.engineDetailVal}>
|
|
537
|
+
{e.memory.isAvailable?`${e.memory.peakHeapMb} MB`:"N/A"}
|
|
538
|
+
</react_native_1.Text>
|
|
539
|
+
</react_native_1.View>
|
|
540
|
+
|
|
541
|
+
<react_native_1.View style={styles.engineDetailRow}>
|
|
542
|
+
<react_native_1.Text style={styles.engineDetailKey}>{t("perf.gcCollections","GC Collections")}</react_native_1.Text>
|
|
543
|
+
<react_native_1.Text style={styles.engineDetailVal}>
|
|
544
|
+
{e.memory.gcCount!==void 0?`${e.memory.gcCount} runs`:t("perf.nativeManaged","Native Managed")}
|
|
545
|
+
</react_native_1.Text>
|
|
546
|
+
</react_native_1.View>
|
|
547
|
+
|
|
548
|
+
<react_native_1.View style={styles.engineDetailRow}>
|
|
549
|
+
<react_native_1.Text style={styles.engineDetailKey}>{t("perf.gcCpuTime","GC CPU Time")}</react_native_1.Text>
|
|
550
|
+
<react_native_1.Text style={styles.engineDetailVal}>
|
|
551
|
+
{e.memory.gcTimeMs!==void 0?`${e.memory.gcTimeMs}ms`:t("perf.nativeManaged","Native Managed")}
|
|
552
|
+
</react_native_1.Text>
|
|
553
|
+
</react_native_1.View>
|
|
554
|
+
</react_native_1.View>
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),e.triggerGC(),(0,toast_1.showToast)(t("perf.invokedHermesGc","Invoked Hermes GC cycle"))}}style={styles.gcActionBtn}>
|
|
558
|
+
<NetworkIcons_1.FlameIcon size={16}color={AppColors_1.AppColors.amber500}/>
|
|
559
|
+
<react_native_1.Text style={styles.gcActionBtnText}>{t("perf.triggerHermesGc","Trigger Hermes Garbage Collection")}</react_native_1.Text>
|
|
560
|
+
</TouchableScale_1.default>
|
|
561
|
+
</react_native_1.View>}
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
{o==="janks"&&<react_native_1.View style={styles.sectionCard}>
|
|
565
|
+
<react_native_1.View style={styles.sectionHeader}>
|
|
566
|
+
<react_native_1.View style={styles.sectionTitleRow}>
|
|
567
|
+
<NetworkIcons_1.FlameIcon size={15}color={AppColors_1.AppColors.red500}/>
|
|
568
|
+
<react_native_1.Text style={styles.sectionTitle}>{t("perf.jankIncidentLog","Jank & Frozen Frame Incident Log")}</react_native_1.Text>
|
|
569
|
+
</react_native_1.View>
|
|
570
|
+
<react_native_1.Text style={styles.jankRatioBadge}>
|
|
571
|
+
{e.jankCount} {t("perf.janksCount","janks")} ({e.jankPercent}%)
|
|
572
|
+
</react_native_1.Text>
|
|
573
|
+
</react_native_1.View>
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
<react_native_1.View style={styles.jankFilterRow}>
|
|
577
|
+
{["all","moderate","severe","frozen"].map(r=><react_native_1.TouchableOpacity key={r}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),b(r)}}style={[styles.jankFilterChip,i===r&&styles.jankFilterChipActive]}>
|
|
578
|
+
<react_native_1.Text style={[styles.jankFilterChipText,i===r&&styles.jankFilterChipTextActive]}>
|
|
579
|
+
{r==="all"?t("perf.allFilter","ALL"):r==="moderate"?t("perf.moderateFilter","MODERATE"):r==="severe"?t("perf.severeFilter","SEVERE"):t("perf.frozenFilter","FROZEN")}
|
|
580
|
+
</react_native_1.Text>
|
|
581
|
+
</react_native_1.TouchableOpacity>)}
|
|
582
|
+
</react_native_1.View>
|
|
583
|
+
|
|
584
|
+
{x.length===0?<react_native_1.View style={styles.emptyJankBox}>
|
|
585
|
+
<NetworkIcons_1.CheckIcon size={22}color={AppColors_1.AppColors.green600}/>
|
|
586
|
+
<react_native_1.Text style={styles.emptyJankTitle}>{t("perf.zeroJanksDetected","Zero Janks Detected")}</react_native_1.Text>
|
|
587
|
+
<react_native_1.Text style={styles.emptyJankDesc}>
|
|
588
|
+
{t("perf.zeroJanksDesc","All frames rendered smoothly within the target vsync budget.")}
|
|
589
|
+
</react_native_1.Text>
|
|
590
|
+
</react_native_1.View>:<react_native_1.View style={styles.janksList}>
|
|
591
|
+
{x.map(r=>{const n=r.severity==="frozen"?AppColors_1.AppColors.red500:r.severity==="severe"?AppColors_1.AppColors.amber500:AppColors_1.AppColors.sky600,s=g?.id===r.id;return<react_native_1.TouchableOpacity key={r.id}onPress={()=>C(s?null:r)}style={[styles.jankItemRow,s&&{borderColor:n}]}>
|
|
592
|
+
<react_native_1.View style={[styles.jankSevBadge,{backgroundColor:`${n}18`}]}>
|
|
593
|
+
<react_native_1.Text style={[styles.jankSevText,{color:n}]}>
|
|
594
|
+
{r.severity.toUpperCase()}
|
|
595
|
+
</react_native_1.Text>
|
|
596
|
+
</react_native_1.View>
|
|
597
|
+
<react_native_1.View style={styles.jankDetailsCol}>
|
|
598
|
+
<react_native_1.Text style={styles.jankDurationText}>
|
|
599
|
+
{r.durationMs}ms ({r.fps} FPS)
|
|
600
|
+
</react_native_1.Text>
|
|
601
|
+
<react_native_1.Text style={styles.jankTimeText}>{r.timeStr}</react_native_1.Text>
|
|
602
|
+
</react_native_1.View>
|
|
603
|
+
<react_native_1.Text style={styles.jankTapHint}>{s?t("perf.hide","Hide"):t("perf.inspect","Inspect")}</react_native_1.Text>
|
|
604
|
+
</react_native_1.TouchableOpacity>})}
|
|
605
|
+
</react_native_1.View>}
|
|
606
|
+
|
|
607
|
+
{g&&<react_native_1.View style={styles.jankInspectorBox}>
|
|
608
|
+
<react_native_1.Text style={styles.jankInspectorTitle}>{t("perf.incidentDiagnostics","Incident Diagnostics")}</react_native_1.Text>
|
|
609
|
+
<react_native_1.Text style={styles.jankInspectorDesc}>
|
|
610
|
+
{t("perf.frameTime","Frame Time")}: <react_native_1.Text style={styles.boldText}>{g.durationMs}ms</react_native_1.Text> ({t("perf.target","Target")}: 16.6ms).
|
|
611
|
+
{" "}{t("perf.delayedBy","Frame delayed by")} {(g.durationMs-16.6).toFixed(1)}ms {t("perf.beyondDeadline","beyond standard vsync deadline")}.
|
|
612
|
+
</react_native_1.Text>
|
|
613
|
+
</react_native_1.View>}
|
|
614
|
+
</react_native_1.View>}
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
{o==="benchmark"&&<react_native_1.View style={styles.sectionCard}>
|
|
618
|
+
<react_native_1.View style={styles.sectionHeader}>
|
|
619
|
+
<react_native_1.View style={styles.sectionTitleRow}>
|
|
620
|
+
<NetworkIcons_1.FlameIcon size={15}color={AppColors_1.AppColors.amber500}/>
|
|
621
|
+
<react_native_1.Text style={styles.sectionTitle}>{t("perf.stressTitle","Interactive Stress Test & Benchmark Suite")}</react_native_1.Text>
|
|
622
|
+
</react_native_1.View>
|
|
623
|
+
</react_native_1.View>
|
|
624
|
+
<react_native_1.Text style={styles.sectionDesc}>
|
|
625
|
+
{t("perf.stressDesc","Trigger synchronous workloads or render bursts to watch the live FPS and JS lag meters react dynamically.")}
|
|
626
|
+
</react_native_1.Text>
|
|
627
|
+
|
|
628
|
+
<react_native_1.View style={styles.stressButtonsGrid}>
|
|
629
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),e.runJsStressTest(120),(0,toast_1.showToast)(t("perf.jsStressRan","Ran 120ms synchronous JS blocking loop"))}}style={[styles.stressBtn,{backgroundColor:`${AppColors_1.AppColors.amber500}14`,borderColor:`${AppColors_1.AppColors.amber500}35`}]}>
|
|
630
|
+
<NetworkIcons_1.FlameIcon size={16}color={AppColors_1.AppColors.amber500}/>
|
|
631
|
+
<react_native_1.View style={styles.stressBtnTextBox}>
|
|
632
|
+
<react_native_1.Text style={[styles.stressBtnTitle,{color:AppColors_1.AppColors.amber500}]}>
|
|
633
|
+
{t("perf.jsStressTitle","JS Loop Stress (120ms)")}
|
|
634
|
+
</react_native_1.Text>
|
|
635
|
+
<react_native_1.Text style={styles.stressBtnSub}>{t("perf.jsStressSub","Simulates heavy compute / blocking synchronous loop")}</react_native_1.Text>
|
|
636
|
+
</react_native_1.View>
|
|
637
|
+
</TouchableScale_1.default>
|
|
638
|
+
|
|
639
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),e.runRenderStressTest(),(0,toast_1.showToast)(t("perf.renderStressRan","Fired 25 rapid re-render cycles"))}}style={[styles.stressBtn,{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:`${AppColors_1.AppColors.purple}35`}]}>
|
|
640
|
+
<NetworkIcons_1.PulseGraphIcon size={16}color={AppColors_1.AppColors.purple}/>
|
|
641
|
+
<react_native_1.View style={styles.stressBtnTextBox}>
|
|
642
|
+
<react_native_1.Text style={[styles.stressBtnTitle,{color:AppColors_1.AppColors.purple}]}>
|
|
643
|
+
{t("perf.renderStressTitle","Re-render Burst (25 frames)")}
|
|
644
|
+
</react_native_1.Text>
|
|
645
|
+
<react_native_1.Text style={styles.stressBtnSub}>{t("perf.renderStressSub","Simulates rapid state & layout reconciliation passes")}</react_native_1.Text>
|
|
646
|
+
</react_native_1.View>
|
|
647
|
+
</TouchableScale_1.default>
|
|
648
|
+
</react_native_1.View>
|
|
649
|
+
</react_native_1.View>}
|
|
650
|
+
|
|
651
|
+
<react_native_1.View style={{height:36}}/>
|
|
652
|
+
</react_native_1.ScrollView>};exports.PerformanceTab=PerformanceTab;const styles=react_native_1.StyleSheet.create({perfContainer:{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground},perfContent:{padding:12,gap:12},topToolbar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4},engineBadgeRow:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:1},enginePill:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:3.5,borderRadius:6,borderWidth:1},enginePillText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10},topActionsRow:{flexDirection:"row",alignItems:"center",gap:6},topActionBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:5,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:AppColors_1.AppColors.grayBackground},topActionBtnText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10,color:AppColors_1.AppColors.grayTextStrong},heroScoreCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,padding:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:12},scoreRow:{flexDirection:"row",alignItems:"center",gap:14},scoreCircleWrapper:{alignItems:"center",justifyContent:"center"},scoreCircle:{width:64,height:64,borderRadius:32,borderWidth:3,alignItems:"center",justifyContent:"center"},scoreNumber:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:22,lineHeight:24},scoreMax:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:8.5,color:AppColors_1.AppColors.grayTextWeak},scoreDetails:{flex:1,gap:3},scoreHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},scoreStatusLabel:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:15,letterSpacing:.5},liveDotPill:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:6,paddingVertical:2,borderRadius:8},liveDot:{width:6,height:6,borderRadius:3},liveDotText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5},scoreDesc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.grayTextWeak,lineHeight:15},sessionMetaRow:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2},sessionDurationText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},apdexBadge:{paddingHorizontal:6,paddingVertical:1.5,borderRadius:4},apdexBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9},metricGrid:{flexDirection:"row",gap:6},metricCard:{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:8,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:2},metricCardHeader:{flexDirection:"row",alignItems:"center",gap:3},metricCardLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak},metricCardValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:16,lineHeight:18},metricUnit:{fontSize:10,fontFamily:AppFonts_1.AppFonts.interMedium,color:AppColors_1.AppColors.grayTextWeak},metricCardSub:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:8.5,color:AppColors_1.AppColors.grayTextWeak},budgetBarContainer:{gap:4,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:9,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},budgetHeaderRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},budgetLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayTextStrong},budgetPercentText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10},budgetTrack:{height:6,backgroundColor:AppColors_1.AppColors.grayBorderSecondary,borderRadius:3,overflow:"hidden"},budgetFill:{height:"100%",borderRadius:3},budgetFooterRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},budgetFooterText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9,color:AppColors_1.AppColors.grayTextWeak},budgetTargetText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:9,color:AppColors_1.AppColors.grayTextWeak},subTabsScrollView:{flexGrow:0},subTabsContent:{gap:6,paddingVertical:2},subTabPill:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:10,paddingVertical:6,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:AppColors_1.AppColors.white},subTabPillActive:{borderColor:`${AppColors_1.AppColors.purple}60`,backgroundColor:`${AppColors_1.AppColors.purple}14`},subTabPillText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayTextWeak},subTabPillTextActive:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.purple},jankCountBadge:{paddingHorizontal:4,paddingVertical:1,borderRadius:4},jankCountBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5},sectionCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,padding:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:10},sectionHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},sectionTitleRow:{flexDirection:"row",alignItems:"center",gap:6,flex:1},sectionTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.grayTextStrong},sectionDesc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak,lineHeight:14},targetBadge:{backgroundColor:`${AppColors_1.AppColors.green600}14`,paddingHorizontal:6,paddingVertical:2,borderRadius:4},targetBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.green600},datadogGrid:{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:2},datadogPill:{flexBasis:"48%",flexGrow:1,paddingVertical:8,paddingHorizontal:10,borderRadius:8,borderWidth:1,gap:2},datadogCount:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:16},datadogLabel:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak},histogramTotalText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak},histogramList:{gap:8},histogramRow:{flexDirection:"row",alignItems:"center",gap:8},histogramLabelCol:{width:110},histogramLabel:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.grayTextStrong},histogramSub:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:8.5,color:AppColors_1.AppColors.grayTextWeak},histogramTrack:{flex:1,height:6,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:3,overflow:"hidden"},histogramFill:{height:"100%",borderRadius:3},histogramCountText:{width:65,textAlign:"right",fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5},percentileGrid:{flexDirection:"row",flexWrap:"wrap",gap:8},percentileCard:{flexBasis:"48%",flexGrow:1,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:10,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:2},percentileTag:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},percentileVal:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:18},percentileUnit:{fontSize:11,fontFamily:AppFonts_1.AppFonts.interMedium,color:AppColors_1.AppColors.grayTextWeak},percentileSub:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9,color:AppColors_1.AppColors.grayTextWeak},chartWrapper:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,paddingVertical:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center"},chartSvg:{alignSelf:"center"},chartAxisRow:{flexDirection:"row",justifyContent:"space-between",width:CHART_WIDTH,paddingTop:4},chartAxisLabel:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9,color:AppColors_1.AppColors.grayTextWeak},legendRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:14,paddingTop:2},legendItem:{flexDirection:"row",alignItems:"center",gap:4},legendDot:{width:7,height:7,borderRadius:3.5},legendText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},lagBarsRow:{flexDirection:"row",alignItems:"flex-end",justifyContent:"space-between",height:52,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},lagBar:{flex:1,marginHorizontal:1,borderRadius:2},lagInfoRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},lagInfoText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak},boldText:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.grayTextStrong},engineDetailsTable:{gap:8},engineDetailRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:5,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary},engineDetailKey:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayTextWeak},engineDetailVal:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.grayTextStrong},enginePillMini:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},enginePillMiniText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5},gcActionBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:`${AppColors_1.AppColors.amber500}15`,borderRadius:8,paddingVertical:10,borderWidth:1,borderColor:`${AppColors_1.AppColors.amber500}35`,marginTop:4},gcActionBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.amber500},jankFilterRow:{flexDirection:"row",gap:6},jankFilterChip:{paddingHorizontal:8,paddingVertical:3,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:AppColors_1.AppColors.grayBackground},jankFilterChipActive:{borderColor:AppColors_1.AppColors.purple,backgroundColor:`${AppColors_1.AppColors.purple}15`},jankFilterChipText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak},jankFilterChipTextActive:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.purple},emptyJankBox:{alignItems:"center",justifyContent:"center",paddingVertical:18,gap:4,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},emptyJankTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.green600},emptyJankDesc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak},janksList:{gap:6},jankItemRow:{flexDirection:"row",alignItems:"center",gap:8,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:6,padding:7,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},jankSevBadge:{paddingHorizontal:5,paddingVertical:2,borderRadius:4},jankSevText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5},jankDetailsCol:{flex:1},jankDurationText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.grayTextStrong},jankTimeText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9,color:AppColors_1.AppColors.grayTextWeak},jankTapHint:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.purple},jankInspectorBox:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:10,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4},jankInspectorTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.grayTextStrong},jankInspectorDesc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak,lineHeight:14},stressButtonsGrid:{gap:8},stressBtn:{flexDirection:"row",alignItems:"center",gap:10,padding:10,borderRadius:8,borderWidth:1},stressBtnTextBox:{flex:1,gap:2},stressBtnTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5},stressBtnSub:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},jankRatioBadge:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayTextWeak}});
|