react-native-inapp-inspector 2.3.19 → 2.3.21
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.md +14 -14
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.js +1 -35
- package/dist/commonjs/components/AnalyticsDetail.js +92 -623
- package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
- package/dist/commonjs/components/AnalyticsGraph.js +70 -370
- package/dist/commonjs/components/AnimatedEntrance.js +1 -11
- package/dist/commonjs/components/AppHeaderLogo.js +7 -134
- package/dist/commonjs/components/BrandCircleIcon.js +73 -118
- package/dist/commonjs/components/BrandSquareIcon.js +63 -108
- package/dist/commonjs/components/CodeSnippet.js +48 -623
- package/dist/commonjs/components/ConsoleLogCard.js +63 -537
- package/dist/commonjs/components/CopyButton.js +3 -89
- package/dist/commonjs/components/DiffViewer.js +19 -83
- package/dist/commonjs/components/DomainHeader.js +27 -127
- package/dist/commonjs/components/EmptyState.js +10 -87
- package/dist/commonjs/components/EndOfListFooter.js +7 -81
- package/dist/commonjs/components/ErrorBoundary.js +72 -566
- package/dist/commonjs/components/HeadersSection.js +31 -110
- package/dist/commonjs/components/HighlightText.js +17 -58
- package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +243 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
- package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
- package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
- package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
- package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
- package/dist/commonjs/components/Inspector/DebuggingTab.js +74 -875
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
- package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +18 -434
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
- package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
- package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
- package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
- package/dist/commonjs/components/Inspector/SettingsPanel.js +427 -3807
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
- package/dist/commonjs/components/Inspector/TabBar.js +36 -334
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
- package/dist/commonjs/components/JsonViewer.js +168 -381
- package/dist/commonjs/components/LogCard.js +57 -567
- package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
- package/dist/commonjs/components/MetaAccordion.js +69 -238
- package/dist/commonjs/components/MiniBarChart.js +3 -56
- package/dist/commonjs/components/MiniLineChart.js +3 -58
- package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
- package/dist/commonjs/components/NetworkIcons.js +521 -1022
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -62
- package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Slider.js +15 -243
- package/dist/commonjs/components/SourcePageCard.js +30 -89
- package/dist/commonjs/components/Toast.js +5 -147
- package/dist/commonjs/components/TouchableScale.js +3 -24
- package/dist/commonjs/components/TreeNode.js +55 -130
- package/dist/commonjs/console.js +1 -16
- package/dist/commonjs/constants/index.js +1 -32
- package/dist/commonjs/constants/telemetryConfig.js +1 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -4
- package/dist/commonjs/crash.js +1 -23
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
- package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
- package/dist/commonjs/customHooks/consoleLogger.js +6 -445
- package/dist/commonjs/customHooks/crashHandler.js +7 -656
- package/dist/commonjs/customHooks/logFilters.js +1 -23
- package/dist/commonjs/customHooks/networkLogger.js +2 -536
- package/dist/commonjs/customHooks/performanceTracker.js +63 -750
- package/dist/commonjs/customHooks/reduxLogger.js +2 -313
- package/dist/commonjs/customHooks/storageInspector.js +1 -435
- package/dist/commonjs/customHooks/useAccordion.js +1 -18
- package/dist/commonjs/decorators/index.js +1 -100
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +8 -921
- package/dist/commonjs/helpers/memoryManager.js +1 -99
- package/dist/commonjs/helpers/qrGenerator.js +1 -367
- package/dist/commonjs/helpers/remoteConfig.js +1 -165
- package/dist/commonjs/helpers/searchQueryParser.js +1 -62
- package/dist/commonjs/helpers/settingsStore.js +1 -144
- package/dist/commonjs/helpers/telemetry.js +1 -501
- package/dist/commonjs/helpers/toast.js +1 -20
- package/dist/commonjs/i18n/index.js +1 -90
- package/dist/commonjs/i18n/locales/en.json +1 -1140
- package/dist/commonjs/index.js +5 -2168
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeInspector.js +1 -415
- package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
- package/dist/commonjs/network.js +1 -13
- package/dist/commonjs/performance.js +1 -29
- package/dist/commonjs/redux.js +1 -20
- package/dist/commonjs/storage.js +1 -14
- package/dist/commonjs/styles/AppColors.js +1 -423
- package/dist/commonjs/styles/AppFonts.js +1 -17
- package/dist/commonjs/styles/common.js +1 -190
- package/dist/commonjs/styles/index.d.ts +6 -0
- package/dist/commonjs/styles/index.js +1 -1589
- package/dist/commonjs/types/enums.d.ts +0 -1
- package/dist/commonjs/types/enums.js +1 -152
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +2 -2
- package/dist/commonjs/types/interfaces.js +1 -2
- package/dist/esm/analytics.js +1 -2
- package/dist/esm/bundle.js +1 -2
- package/dist/esm/capture.js +1 -32
- package/dist/esm/components/AnalyticsDetail.js +171 -664
- package/dist/esm/components/AnalyticsEventCard.js +77 -335
- package/dist/esm/components/AnalyticsGraph.js +95 -357
- package/dist/esm/components/AnimatedEntrance.js +1 -6
- package/dist/esm/components/AppHeaderLogo.js +7 -94
- package/dist/esm/components/BrandCircleIcon.js +114 -119
- package/dist/esm/components/BrandSquareIcon.js +73 -78
- package/dist/esm/components/CodeSnippet.js +58 -595
- package/dist/esm/components/ConsoleLogCard.js +91 -526
- package/dist/esm/components/CopyButton.js +3 -51
- package/dist/esm/components/DiffViewer.js +22 -48
- package/dist/esm/components/DomainHeader.js +43 -138
- package/dist/esm/components/EmptyState.js +17 -56
- package/dist/esm/components/EndOfListFooter.js +15 -83
- package/dist/esm/components/ErrorBoundary.js +125 -582
- package/dist/esm/components/HeadersSection.js +52 -93
- package/dist/esm/components/HighlightText.js +17 -53
- package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/esm/components/Inspector/AboutModal.js +243 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
- package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
- package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
- package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
- package/dist/esm/components/Inspector/CrashDetail.js +236 -747
- package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
- package/dist/esm/components/Inspector/CrashTab.js +177 -711
- package/dist/esm/components/Inspector/DebuggingTab.js +164 -925
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +68 -454
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +78 -323
- package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
- package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
- package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
- package/dist/esm/components/Inspector/NetworkTab.js +125 -517
- package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
- package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
- package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
- package/dist/esm/components/Inspector/ReduxTab.js +144 -722
- package/dist/esm/components/Inspector/SettingsPanel.js +643 -3985
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Inspector/StorageTab.js +172 -866
- package/dist/esm/components/Inspector/TabBar.js +45 -305
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
- package/dist/esm/components/JsonViewer.js +179 -354
- package/dist/esm/components/LogCard.js +93 -565
- package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
- package/dist/esm/components/MetaAccordion.js +136 -267
- package/dist/esm/components/MiniBarChart.js +3 -18
- package/dist/esm/components/MiniLineChart.js +3 -20
- package/dist/esm/components/NetworkIcons.d.ts +13 -0
- package/dist/esm/components/NetworkIcons.js +523 -838
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -58
- package/dist/esm/components/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Slider.js +24 -213
- package/dist/esm/components/SourcePageCard.js +65 -86
- package/dist/esm/components/Toast.js +10 -117
- package/dist/esm/components/TouchableScale.js +3 -19
- package/dist/esm/components/TreeNode.js +58 -95
- package/dist/esm/console.js +1 -2
- package/dist/esm/constants/index.js +1 -28
- package/dist/esm/constants/telemetryConfig.js +1 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.js +1 -2
- package/dist/esm/customHooks/analyticsLogger.js +1 -230
- package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
- package/dist/esm/customHooks/consoleLogger.js +6 -432
- package/dist/esm/customHooks/crashHandler.js +7 -630
- package/dist/esm/customHooks/logFilters.js +1 -20
- package/dist/esm/customHooks/networkLogger.js +2 -519
- package/dist/esm/customHooks/performanceTracker.js +63 -723
- package/dist/esm/customHooks/reduxLogger.js +2 -293
- package/dist/esm/customHooks/storageInspector.js +1 -418
- package/dist/esm/customHooks/useAccordion.js +1 -16
- package/dist/esm/decorators/index.js +1 -95
- package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +8 -861
- package/dist/esm/helpers/memoryManager.js +1 -91
- package/dist/esm/helpers/qrGenerator.js +1 -364
- package/dist/esm/helpers/remoteConfig.js +1 -160
- package/dist/esm/helpers/searchQueryParser.js +1 -59
- package/dist/esm/helpers/settingsStore.js +1 -134
- package/dist/esm/helpers/telemetry.js +1 -489
- package/dist/esm/helpers/toast.js +1 -15
- package/dist/esm/i18n/index.js +1 -78
- package/dist/esm/i18n/locales/en.json +1 -1140
- package/dist/esm/index.js +7 -1982
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/native/NativeInspector.js +1 -382
- package/dist/esm/native/NativeNetworkInspector.js +1 -2
- package/dist/esm/network.js +1 -1
- package/dist/esm/performance.js +1 -2
- package/dist/esm/redux.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/styles/AppColors.js +1 -417
- package/dist/esm/styles/AppFonts.js +1 -13
- package/dist/esm/styles/common.js +1 -186
- package/dist/esm/styles/index.d.ts +6 -0
- package/dist/esm/styles/index.js +1 -1551
- package/dist/esm/types/enums.d.ts +0 -1
- package/dist/esm/types/enums.js +1 -149
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +2 -2
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +60 -12
- package/package.json +5 -3
- package/src/native/NativeInspector.ts +18 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -109
- package/src/components/AnalyticsDetail.tsx +0 -870
- package/src/components/AnalyticsEventCard.tsx +0 -444
- package/src/components/AnalyticsGraph.tsx +0 -583
- package/src/components/AnimatedEntrance.tsx +0 -20
- package/src/components/AppHeaderLogo.tsx +0 -143
- package/src/components/BrandCircleIcon.tsx +0 -144
- package/src/components/BrandSquareIcon.tsx +0 -184
- package/src/components/CodeSnippet.tsx +0 -725
- package/src/components/ConsoleLogCard.tsx +0 -679
- package/src/components/CopyButton.tsx +0 -87
- package/src/components/DiffViewer.tsx +0 -82
- package/src/components/DomainHeader.tsx +0 -224
- package/src/components/EmptyState.tsx +0 -97
- package/src/components/EndOfListFooter.tsx +0 -100
- package/src/components/ErrorBoundary.tsx +0 -688
- package/src/components/HeadersSection.tsx +0 -172
- package/src/components/HighlightText.tsx +0 -100
- package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
- package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
- package/src/components/Inspector/BundleTab.tsx +0 -4768
- package/src/components/Inspector/ConsoleTab.tsx +0 -726
- package/src/components/Inspector/CrashDetail.tsx +0 -997
- package/src/components/Inspector/CrashFilterModal.tsx +0 -721
- package/src/components/Inspector/CrashTab.tsx +0 -933
- package/src/components/Inspector/DebuggingTab.tsx +0 -1103
- package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
- package/src/components/Inspector/FabLauncher.tsx +0 -590
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
- package/src/components/Inspector/FeedbackModal.tsx +0 -626
- package/src/components/Inspector/InspectorContext.tsx +0 -28
- package/src/components/Inspector/InspectorHeader.tsx +0 -1583
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -460
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -778
- package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
- package/src/components/Inspector/NetworkTab.tsx +0 -820
- package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
- package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
- package/src/components/Inspector/PerformanceTab.tsx +0 -1967
- package/src/components/Inspector/ReduxDetail.tsx +0 -1651
- package/src/components/Inspector/ReduxTab.tsx +0 -987
- package/src/components/Inspector/SettingsPanel.tsx +0 -5136
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -431
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -549
- package/src/components/LogCard.tsx +0 -694
- package/src/components/LogSyntaxHighlighter.tsx +0 -178
- package/src/components/MetaAccordion.tsx +0 -355
- package/src/components/MiniBarChart.tsx +0 -42
- package/src/components/MiniLineChart.tsx +0 -33
- package/src/components/NetworkIcons.tsx +0 -2655
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -84
- package/src/components/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Slider.tsx +0 -300
- package/src/components/SourcePageCard.tsx +0 -150
- package/src/components/Toast.tsx +0 -131
- package/src/components/TouchableScale.tsx +0 -61
- package/src/components/TreeNode.tsx +0 -171
- package/src/console.ts +0 -24
- package/src/constants/index.ts +0 -41
- package/src/constants/telemetryConfig.ts +0 -4
- package/src/constants/version.ts +0 -3
- package/src/crash.ts +0 -32
- package/src/customHooks/analyticsLogger.ts +0 -336
- package/src/customHooks/bundleAnalyzer.ts +0 -1256
- package/src/customHooks/consoleLogger.ts +0 -530
- package/src/customHooks/crashHandler.ts +0 -944
- package/src/customHooks/logFilters.ts +0 -32
- package/src/customHooks/networkLogger.ts +0 -624
- package/src/customHooks/performanceTracker.ts +0 -1014
- package/src/customHooks/reduxLogger.ts +0 -406
- package/src/customHooks/storageInspector.ts +0 -513
- package/src/customHooks/useAccordion.tsx +0 -27
- package/src/decorators/index.ts +0 -184
- package/src/helpers/gaAnalyticsRegistry.ts +0 -204
- package/src/helpers/index.ts +0 -1092
- package/src/helpers/memoryManager.ts +0 -138
- package/src/helpers/qrGenerator.ts +0 -430
- package/src/helpers/remoteConfig.ts +0 -212
- package/src/helpers/searchQueryParser.ts +0 -84
- package/src/helpers/settingsStore.ts +0 -171
- package/src/helpers/telemetry.ts +0 -568
- package/src/helpers/toast.ts +0 -17
- package/src/i18n/index.ts +0 -104
- package/src/i18n/locales/en.json +0 -1141
- package/src/index.tsx +0 -2650
- package/src/metro.ts +0 -598
- package/src/network.ts +0 -22
- package/src/performance.ts +0 -38
- package/src/redux.ts +0 -23
- package/src/storage.ts +0 -18
- package/src/styles/AppColors.ts +0 -455
- package/src/styles/AppFonts.ts +0 -26
- package/src/styles/common.ts +0 -209
- package/src/styles/index.ts +0 -1606
- package/src/types/enums.ts +0 -210
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -535
|
@@ -1,1967 +0,0 @@
|
|
|
1
|
-
import React, {useState, useEffect, useMemo, useRef} from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Platform,
|
|
4
|
-
ScrollView,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
Text,
|
|
7
|
-
TextInput,
|
|
8
|
-
TouchableOpacity,
|
|
9
|
-
View,
|
|
10
|
-
} from 'react-native';
|
|
11
|
-
import Svg, {
|
|
12
|
-
Path,
|
|
13
|
-
Defs,
|
|
14
|
-
LinearGradient,
|
|
15
|
-
Stop,
|
|
16
|
-
Line,
|
|
17
|
-
Circle,
|
|
18
|
-
G,
|
|
19
|
-
Rect,
|
|
20
|
-
} from 'react-native-svg';
|
|
21
|
-
import TouchableScale from '../TouchableScale';
|
|
22
|
-
import CopyButton from '../CopyButton';
|
|
23
|
-
import HighlightText from '../HighlightText';
|
|
24
|
-
import EndOfListFooter from '../EndOfListFooter';
|
|
25
|
-
import FeatureUnderDevNotice from './FeatureUnderDevNotice';
|
|
26
|
-
import {AppColors} from '../../styles/AppColors';
|
|
27
|
-
import {AppFonts} from '../../styles/AppFonts';
|
|
28
|
-
import {useTranslation} from '../../i18n';
|
|
29
|
-
import {getRuntimeDiagnostics} from '../../helpers';
|
|
30
|
-
import {
|
|
31
|
-
SearchIcon,
|
|
32
|
-
CircleXIcon,
|
|
33
|
-
CircleAlertIcon,
|
|
34
|
-
PerformanceIcon,
|
|
35
|
-
BoltIcon,
|
|
36
|
-
LightbulbIcon,
|
|
37
|
-
WarningTriangleIcon,
|
|
38
|
-
MapIcon,
|
|
39
|
-
AtomIcon,
|
|
40
|
-
BrainIcon,
|
|
41
|
-
GlobeIcon,
|
|
42
|
-
ChevronIcon,
|
|
43
|
-
} from '../NetworkIcons';
|
|
44
|
-
import {
|
|
45
|
-
getPerformanceEvents,
|
|
46
|
-
subscribePerformanceEvents,
|
|
47
|
-
logPerformanceEvent,
|
|
48
|
-
clearPerformanceEvents,
|
|
49
|
-
} from '../../customHooks/performanceTracker';
|
|
50
|
-
import {
|
|
51
|
-
startNativeFpsMonitoring,
|
|
52
|
-
stopNativeFpsMonitoring,
|
|
53
|
-
getNativeFpsMetrics,
|
|
54
|
-
getNativeSystemMetrics,
|
|
55
|
-
NativeSystemMetrics,
|
|
56
|
-
isNativeModuleAvailable,
|
|
57
|
-
} from '../../native/NativeInspector';
|
|
58
|
-
import {trackInspectorScreenRecord} from '../../helpers/telemetry';
|
|
59
|
-
|
|
60
|
-
export interface PerformanceEvent {
|
|
61
|
-
id: string;
|
|
62
|
-
timestamp: number;
|
|
63
|
-
type: 'fps_drop' | 'slow_render' | 'transition' | 'memory' | 'network' | 'bridge' | 'touch';
|
|
64
|
-
category: 'render' | 'navigation' | 'memory' | 'io' | 'bridge';
|
|
65
|
-
fps: number;
|
|
66
|
-
durationMs: number;
|
|
67
|
-
droppedFrames?: number;
|
|
68
|
-
frameTimeMs?: number;
|
|
69
|
-
frameBudgetPct?: number;
|
|
70
|
-
bottleneckThread?: 'JS Thread' | 'UI Thread' | 'Bridge' | 'Balanced';
|
|
71
|
-
screenName?: string;
|
|
72
|
-
label: string;
|
|
73
|
-
detail: string;
|
|
74
|
-
source?: string;
|
|
75
|
-
breakdown?: {
|
|
76
|
-
jsTimeMs: number;
|
|
77
|
-
uiTimeMs: number;
|
|
78
|
-
bridgeLatencyMs?: number;
|
|
79
|
-
};
|
|
80
|
-
heapDeltaKb?: number;
|
|
81
|
-
advice?: string;
|
|
82
|
-
severity: 'optimal' | 'warning' | 'critical';
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
const PerformanceTab = React.memo(() => {
|
|
86
|
-
const {t} = useTranslation();
|
|
87
|
-
// ─── Real-Time FPS Tracking ────────────────────────────────────────────────
|
|
88
|
-
const [isRecording, setIsRecording] = useState(true);
|
|
89
|
-
const [currentFps, setCurrentFps] = useState(60);
|
|
90
|
-
const [minFps, setMinFps] = useState(57);
|
|
91
|
-
const [maxFps, setMaxFps] = useState(60);
|
|
92
|
-
const [avgFps, setAvgFps] = useState(59);
|
|
93
|
-
const [totalFrames, setTotalFrames] = useState(4820);
|
|
94
|
-
const [jankyFrameCount, setJankyFrameCount] = useState(4);
|
|
95
|
-
const [jsLagMs, setJsLagMs] = useState(1.2);
|
|
96
|
-
|
|
97
|
-
// Expanded Event Card IDs
|
|
98
|
-
const [expandedEventIds, setExpandedEventIds] = useState<Record<string, boolean>>({
|
|
99
|
-
'perf-1': true,
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
const toggleEventExpand = (id: string) => {
|
|
103
|
-
setExpandedEventIds(prev => ({
|
|
104
|
-
...prev,
|
|
105
|
-
[id]: !prev[id],
|
|
106
|
-
}));
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
// FPS history for sparkline
|
|
110
|
-
const [fpsHistory, setFpsHistory] = useState<number[]>([
|
|
111
|
-
60, 59, 60, 60, 58, 60, 59, 60, 60, 60, 57, 60, 59, 60, 60, 58, 60, 60, 59, 60,
|
|
112
|
-
]);
|
|
113
|
-
|
|
114
|
-
// Performance Log Events (Dynamic live subscription)
|
|
115
|
-
const [events, setEvents] = useState<PerformanceEvent[]>(() =>
|
|
116
|
-
getPerformanceEvents(),
|
|
117
|
-
);
|
|
118
|
-
const [filterCategory, setFilterCategory] = useState<'ALL' | 'JANKY' | 'NAVIGATION' | 'RENDER' | 'MEMORY' | 'IO'>('ALL');
|
|
119
|
-
const [search, setSearch] = useState('');
|
|
120
|
-
|
|
121
|
-
useEffect(() => {
|
|
122
|
-
const unsub = subscribePerformanceEvents(liveEvents => {
|
|
123
|
-
setEvents(liveEvents);
|
|
124
|
-
});
|
|
125
|
-
return unsub;
|
|
126
|
-
}, []);
|
|
127
|
-
|
|
128
|
-
// ─── Live Frame Measurement Loop (1-Second Batch Interval) ────────────────
|
|
129
|
-
const lastFrameTimeRef = useRef<number>(Date.now());
|
|
130
|
-
const rafIdRef = useRef<number | null>(null);
|
|
131
|
-
const [systemMetrics, setSystemMetrics] = useState<NativeSystemMetrics | null>(null);
|
|
132
|
-
|
|
133
|
-
useEffect(() => {
|
|
134
|
-
let isMounted = true;
|
|
135
|
-
const fetchMetrics = async () => {
|
|
136
|
-
const metrics = await getNativeSystemMetrics();
|
|
137
|
-
if (isMounted && metrics) {
|
|
138
|
-
setSystemMetrics(metrics);
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
fetchMetrics();
|
|
142
|
-
const interval = setInterval(fetchMetrics, 2000);
|
|
143
|
-
return () => {
|
|
144
|
-
isMounted = false;
|
|
145
|
-
clearInterval(interval);
|
|
146
|
-
};
|
|
147
|
-
}, []);
|
|
148
|
-
|
|
149
|
-
useEffect(() => {
|
|
150
|
-
if (isNativeModuleAvailable()) {
|
|
151
|
-
startNativeFpsMonitoring();
|
|
152
|
-
return () => {
|
|
153
|
-
stopNativeFpsMonitoring();
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}, []);
|
|
157
|
-
|
|
158
|
-
useEffect(() => {
|
|
159
|
-
if (!isRecording) return;
|
|
160
|
-
|
|
161
|
-
let isMounted = true;
|
|
162
|
-
let frameCount = 0;
|
|
163
|
-
let maxLagInSecond = 0;
|
|
164
|
-
let lastSecond = Date.now();
|
|
165
|
-
|
|
166
|
-
const measureFrame = async () => {
|
|
167
|
-
if (!isMounted) return;
|
|
168
|
-
|
|
169
|
-
const now = Date.now();
|
|
170
|
-
const delta = now - lastFrameTimeRef.current;
|
|
171
|
-
lastFrameTimeRef.current = now;
|
|
172
|
-
|
|
173
|
-
// Track peak JS event loop lag during this 1s interval (without triggering re-renders)
|
|
174
|
-
const lag = Math.max(0, delta - 16.67);
|
|
175
|
-
if (lag > maxLagInSecond) {
|
|
176
|
-
maxLagInSecond = lag;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
frameCount++;
|
|
180
|
-
|
|
181
|
-
// Update React state ONCE every 1 second (1000ms) to prevent UI shaking/re-rendering
|
|
182
|
-
if (now - lastSecond >= 1000) {
|
|
183
|
-
const elapsed = now - lastSecond;
|
|
184
|
-
let measuredFps = Math.min(120, Math.max(0, Math.round((frameCount * 1000) / elapsed)));
|
|
185
|
-
|
|
186
|
-
if (isNativeModuleAvailable()) {
|
|
187
|
-
try {
|
|
188
|
-
const nativeMetrics = await getNativeFpsMetrics();
|
|
189
|
-
if (nativeMetrics && nativeMetrics.fps > 0) {
|
|
190
|
-
measuredFps = Math.round(nativeMetrics.fps);
|
|
191
|
-
}
|
|
192
|
-
} catch {}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
setCurrentFps(measuredFps);
|
|
196
|
-
setMinFps(prev => Math.min(prev, measuredFps));
|
|
197
|
-
setMaxFps(prev => Math.max(prev, measuredFps));
|
|
198
|
-
setTotalFrames(prev => prev + frameCount);
|
|
199
|
-
setJsLagMs(Number(maxLagInSecond.toFixed(1)));
|
|
200
|
-
|
|
201
|
-
if (measuredFps < 55) {
|
|
202
|
-
setJankyFrameCount(prev => prev + 1);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
setFpsHistory(prev => {
|
|
206
|
-
const next = [...prev.slice(-19), measuredFps];
|
|
207
|
-
const sum = next.reduce((a, b) => a + b, 0);
|
|
208
|
-
setAvgFps(Math.round(sum / next.length));
|
|
209
|
-
return next;
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
// Trigger log if noticeable frame drop
|
|
213
|
-
if (measuredFps < 50) {
|
|
214
|
-
const durationStr = (1000 / measuredFps).toFixed(1);
|
|
215
|
-
logPerformanceEvent({
|
|
216
|
-
type: 'fps_drop',
|
|
217
|
-
category: 'render',
|
|
218
|
-
fps: measuredFps,
|
|
219
|
-
durationMs: Number(durationStr),
|
|
220
|
-
label: t('performance.liveFpsDip', {fps: measuredFps}),
|
|
221
|
-
detail: t('performance.liveFpsDipDetail', {duration: durationStr}),
|
|
222
|
-
source: t('performance.uiRenderThread'),
|
|
223
|
-
breakdown: {
|
|
224
|
-
jsTimeMs: Number(((1000 / measuredFps) * 0.65).toFixed(1)),
|
|
225
|
-
uiTimeMs: Number(((1000 / measuredFps) * 0.35).toFixed(1)),
|
|
226
|
-
},
|
|
227
|
-
advice: t('performance.liveFpsDipAdvice'),
|
|
228
|
-
severity: measuredFps < 30 ? 'critical' : 'warning',
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
frameCount = 0;
|
|
233
|
-
maxLagInSecond = 0;
|
|
234
|
-
lastSecond = now;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
rafIdRef.current = requestAnimationFrame(measureFrame);
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
lastFrameTimeRef.current = Date.now();
|
|
241
|
-
rafIdRef.current = requestAnimationFrame(measureFrame);
|
|
242
|
-
|
|
243
|
-
return () => {
|
|
244
|
-
isMounted = false;
|
|
245
|
-
if (rafIdRef.current) cancelAnimationFrame(rafIdRef.current);
|
|
246
|
-
};
|
|
247
|
-
}, [isRecording]);
|
|
248
|
-
|
|
249
|
-
// Filtered Events
|
|
250
|
-
const filteredEvents = useMemo(() => {
|
|
251
|
-
return events.filter(e => {
|
|
252
|
-
let matchSearch = true;
|
|
253
|
-
if (search && search.trim().length > 0) {
|
|
254
|
-
const queryTokens = search.trim().toLowerCase().split(/\s+/).filter(Boolean);
|
|
255
|
-
const corpus = [
|
|
256
|
-
e.label || '',
|
|
257
|
-
e.detail || '',
|
|
258
|
-
e.source || '',
|
|
259
|
-
e.category || '',
|
|
260
|
-
e.severity || '',
|
|
261
|
-
e.bottleneckThread || '',
|
|
262
|
-
].join(' ').toLowerCase();
|
|
263
|
-
matchSearch = queryTokens.every(tok => corpus.includes(tok));
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
const matchFilter =
|
|
267
|
-
filterCategory === 'ALL'
|
|
268
|
-
? true
|
|
269
|
-
: filterCategory === 'JANKY'
|
|
270
|
-
? e.severity === 'warning' || e.severity === 'critical'
|
|
271
|
-
: filterCategory === 'NAVIGATION'
|
|
272
|
-
? e.category === 'navigation'
|
|
273
|
-
: filterCategory === 'RENDER'
|
|
274
|
-
? e.category === 'render'
|
|
275
|
-
: filterCategory === 'MEMORY'
|
|
276
|
-
? e.category === 'memory'
|
|
277
|
-
: e.category === 'io' || e.category === 'bridge';
|
|
278
|
-
|
|
279
|
-
return matchSearch && matchFilter;
|
|
280
|
-
});
|
|
281
|
-
}, [events, search, filterCategory]);
|
|
282
|
-
|
|
283
|
-
// Overall Performance Score
|
|
284
|
-
const performanceScore = useMemo(() => {
|
|
285
|
-
if (avgFps >= 58) {
|
|
286
|
-
return {
|
|
287
|
-
score: '98/100',
|
|
288
|
-
grade: t('performance.excellent'),
|
|
289
|
-
color: AppColors.emerald600,
|
|
290
|
-
bg: AppColors.greenBg,
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
if (avgFps >= 50) {
|
|
294
|
-
return {
|
|
295
|
-
score: '84/100',
|
|
296
|
-
grade: t('performance.good'),
|
|
297
|
-
color: AppColors.firebaseOrange,
|
|
298
|
-
bg: AppColors.amberBg,
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
return {
|
|
302
|
-
score: '58/100',
|
|
303
|
-
grade: t('performance.needsOptimization'),
|
|
304
|
-
color: AppColors.errorColor,
|
|
305
|
-
bg: AppColors.errorCardBg,
|
|
306
|
-
};
|
|
307
|
-
}, [avgFps, t]);
|
|
308
|
-
|
|
309
|
-
// ─── Dynamic Runtime Environment & Engine Diagnostics ──────────────────────
|
|
310
|
-
const runtimeDiagnostics = useMemo(() => {
|
|
311
|
-
const raw = getRuntimeDiagnostics();
|
|
312
|
-
|
|
313
|
-
const engineNameMap: Record<string, string> = {
|
|
314
|
-
hermes: t('performance.hermesAot'),
|
|
315
|
-
v8: t('performance.v8Jit'),
|
|
316
|
-
jsc: t('performance.jscEngine'),
|
|
317
|
-
};
|
|
318
|
-
const engineSubMap: Record<string, string> = {
|
|
319
|
-
hermes: t('performance.bytecodeCompiled'),
|
|
320
|
-
v8: t('performance.jitEngine'),
|
|
321
|
-
jsc: t('performance.webkitEngine'),
|
|
322
|
-
};
|
|
323
|
-
const archNameMap: Record<string, string> = {
|
|
324
|
-
fabric: t('performance.fabricJsi'),
|
|
325
|
-
paper: t('performance.paperBridge'),
|
|
326
|
-
};
|
|
327
|
-
const archSubMap: Record<string, string> = {
|
|
328
|
-
fabric: t('performance.directCppBindings'),
|
|
329
|
-
paper: t('performance.asyncJsonBridge'),
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
return {
|
|
333
|
-
jsEngineName: engineNameMap[raw.engineType],
|
|
334
|
-
jsEngineSub: engineSubMap[raw.engineType],
|
|
335
|
-
uiArchName: archNameMap[raw.archType],
|
|
336
|
-
uiArchSub: archSubMap[raw.archType],
|
|
337
|
-
usedHeapMb: raw.usedHeapMb,
|
|
338
|
-
totalAllocMb: raw.totalAllocMb,
|
|
339
|
-
};
|
|
340
|
-
}, [t]);
|
|
341
|
-
|
|
342
|
-
// ─── Dynamic 16.67ms Frame Budget Utilization ─────────────────────────────
|
|
343
|
-
const frameBudgetStats = useMemo(() => {
|
|
344
|
-
const frameDuration = avgFps > 0 ? 1000 / avgFps : 16.67;
|
|
345
|
-
const jsTime = Number(Math.max(1.0, Math.min(frameDuration * 0.45, 2.0 + jsLagMs)).toFixed(1));
|
|
346
|
-
const layoutTime = Number(Math.max(1.0, frameDuration * 0.2).toFixed(1));
|
|
347
|
-
const renderTime = Number(Math.max(1.0, frameDuration * 0.25).toFixed(1));
|
|
348
|
-
const totalUsed = jsTime + layoutTime + renderTime;
|
|
349
|
-
const freeTime = Math.max(0, Number((16.67 - totalUsed).toFixed(1)));
|
|
350
|
-
const headroomPercent = Math.max(0, Math.min(100, Math.round((freeTime / 16.67) * 100)));
|
|
351
|
-
|
|
352
|
-
return {
|
|
353
|
-
jsTime,
|
|
354
|
-
layoutTime,
|
|
355
|
-
renderTime,
|
|
356
|
-
freeTime,
|
|
357
|
-
headroomPercent,
|
|
358
|
-
};
|
|
359
|
-
}, [avgFps, jsLagMs]);
|
|
360
|
-
|
|
361
|
-
// ─── Dynamic SVG FPS Area & Trend Curve Data ────────────────────────────
|
|
362
|
-
const [selectedFpsPointIdx, setSelectedFpsPointIdx] = useState<number | null>(
|
|
363
|
-
null,
|
|
364
|
-
);
|
|
365
|
-
const svgGraphWidth = 320;
|
|
366
|
-
const svgGraphHeight = 64;
|
|
367
|
-
|
|
368
|
-
const fpsGraphData = useMemo(() => {
|
|
369
|
-
const points = fpsHistory.length > 0 ? fpsHistory : [60, 60];
|
|
370
|
-
const stepX = svgGraphWidth / Math.max(1, points.length - 1);
|
|
371
|
-
const coords = points.map((val, idx) => {
|
|
372
|
-
const clamped = Math.max(0, Math.min(60, val));
|
|
373
|
-
const x = Number((idx * stepX).toFixed(1));
|
|
374
|
-
const y = Number(
|
|
375
|
-
(svgGraphHeight - (clamped / 60) * (svgGraphHeight - 14) - 6).toFixed(
|
|
376
|
-
1,
|
|
377
|
-
),
|
|
378
|
-
);
|
|
379
|
-
return {x, y, val};
|
|
380
|
-
});
|
|
381
|
-
|
|
382
|
-
let linePath = `M ${coords[0].x} ${coords[0].y}`;
|
|
383
|
-
for (let i = 0; i < coords.length - 1; i++) {
|
|
384
|
-
const p0 = coords[i];
|
|
385
|
-
const p1 = coords[i + 1];
|
|
386
|
-
const midX = Number(((p0.x + p1.x) / 2).toFixed(1));
|
|
387
|
-
linePath += ` C ${midX} ${p0.y}, ${midX} ${p1.y}, ${p1.x} ${p1.y}`;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
const last = coords[coords.length - 1];
|
|
391
|
-
const first = coords[0];
|
|
392
|
-
const areaPath = `${linePath} L ${last.x} ${svgGraphHeight} L ${first.x} ${svgGraphHeight} Z`;
|
|
393
|
-
|
|
394
|
-
return {linePath, areaPath, coords};
|
|
395
|
-
}, [fpsHistory]);
|
|
396
|
-
|
|
397
|
-
const latencyBuckets = useMemo(() => {
|
|
398
|
-
let optimal = 0;
|
|
399
|
-
let minorJank = 0;
|
|
400
|
-
let noticeableJank = 0;
|
|
401
|
-
let severeFreeze = 0;
|
|
402
|
-
|
|
403
|
-
fpsHistory.forEach(fps => {
|
|
404
|
-
if (fps >= 55) optimal++;
|
|
405
|
-
else if (fps >= 30) minorJank++;
|
|
406
|
-
else if (fps >= 20) noticeableJank++;
|
|
407
|
-
else severeFreeze++;
|
|
408
|
-
});
|
|
409
|
-
|
|
410
|
-
const total = Math.max(1, fpsHistory.length);
|
|
411
|
-
return [
|
|
412
|
-
{
|
|
413
|
-
key: 'optimal',
|
|
414
|
-
label: t('performance.optimalBucket'),
|
|
415
|
-
count: optimal,
|
|
416
|
-
percent: Number(((optimal / total) * 100).toFixed(0)),
|
|
417
|
-
color: AppColors.emerald500,
|
|
418
|
-
bgColor: AppColors.emerald100,
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
key: 'minorJank',
|
|
422
|
-
label: t('performance.minorJankBucket'),
|
|
423
|
-
count: minorJank,
|
|
424
|
-
percent: Number(((minorJank / total) * 100).toFixed(0)),
|
|
425
|
-
color: AppColors.amber500,
|
|
426
|
-
bgColor: AppColors.amber100,
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
key: 'noticeableJank',
|
|
430
|
-
label: t('performance.noticeableJankBucket'),
|
|
431
|
-
count: noticeableJank,
|
|
432
|
-
percent: Number(((noticeableJank / total) * 100).toFixed(0)),
|
|
433
|
-
color: AppColors.firebaseOrange,
|
|
434
|
-
bgColor: AppColors.lightOrange,
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
key: 'severeFreeze',
|
|
438
|
-
label: t('performance.severeFreezeBucket'),
|
|
439
|
-
count: severeFreeze,
|
|
440
|
-
percent: Number(((severeFreeze / total) * 100).toFixed(0)),
|
|
441
|
-
color: AppColors.errorColor,
|
|
442
|
-
bgColor: AppColors.errorCardBg,
|
|
443
|
-
},
|
|
444
|
-
];
|
|
445
|
-
}, [fpsHistory, t]);
|
|
446
|
-
|
|
447
|
-
const clearEvents = () => {
|
|
448
|
-
clearPerformanceEvents();
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
const activeScrubPoint =
|
|
452
|
-
selectedFpsPointIdx !== null && fpsGraphData.coords[selectedFpsPointIdx]
|
|
453
|
-
? fpsGraphData.coords[selectedFpsPointIdx]
|
|
454
|
-
: null;
|
|
455
|
-
|
|
456
|
-
return (
|
|
457
|
-
<View style={perfStyles.container}>
|
|
458
|
-
{/* Search & Live Control Header */}
|
|
459
|
-
<View style={perfStyles.headerBar}>
|
|
460
|
-
<View style={perfStyles.searchBox}>
|
|
461
|
-
<SearchIcon color={AppColors.grayTextWeak} size={15} />
|
|
462
|
-
<TextInput
|
|
463
|
-
placeholder={t('performance.searchPlaceholder')}
|
|
464
|
-
placeholderTextColor={AppColors.grayTextWeak}
|
|
465
|
-
value={search}
|
|
466
|
-
onChangeText={setSearch}
|
|
467
|
-
style={perfStyles.searchInput}
|
|
468
|
-
autoCapitalize="none"
|
|
469
|
-
autoCorrect={false}
|
|
470
|
-
/>
|
|
471
|
-
{search ? (
|
|
472
|
-
<TouchableScale onPress={() => setSearch('')}>
|
|
473
|
-
<CircleXIcon color={AppColors.grayTextWeak} size={16} />
|
|
474
|
-
</TouchableScale>
|
|
475
|
-
) : null}
|
|
476
|
-
</View>
|
|
477
|
-
|
|
478
|
-
{/* Live FPS Telemetry Recorder Toggle */}
|
|
479
|
-
<TouchableScale
|
|
480
|
-
onPress={() => {
|
|
481
|
-
setIsRecording(prev => {
|
|
482
|
-
const next = !prev;
|
|
483
|
-
trackInspectorScreenRecord(next ? 'start' : 'stop', 'performance_fps');
|
|
484
|
-
return next;
|
|
485
|
-
});
|
|
486
|
-
}}
|
|
487
|
-
style={[
|
|
488
|
-
perfStyles.recordToggleBtn,
|
|
489
|
-
isRecording
|
|
490
|
-
? perfStyles.recordToggleActive
|
|
491
|
-
: perfStyles.recordToggleInactive,
|
|
492
|
-
]}>
|
|
493
|
-
<View
|
|
494
|
-
style={[
|
|
495
|
-
perfStyles.recordingDot,
|
|
496
|
-
{
|
|
497
|
-
backgroundColor: isRecording
|
|
498
|
-
? AppColors.errorColor
|
|
499
|
-
: AppColors.grayTextWeak,
|
|
500
|
-
},
|
|
501
|
-
]}
|
|
502
|
-
/>
|
|
503
|
-
<Text
|
|
504
|
-
style={[
|
|
505
|
-
perfStyles.recordToggleText,
|
|
506
|
-
{
|
|
507
|
-
color: isRecording
|
|
508
|
-
? AppColors.errorColor
|
|
509
|
-
: AppColors.grayTextWeak,
|
|
510
|
-
},
|
|
511
|
-
]}>
|
|
512
|
-
{isRecording
|
|
513
|
-
? t('performance.recording')
|
|
514
|
-
: t('performance.paused')}
|
|
515
|
-
</Text>
|
|
516
|
-
</TouchableScale>
|
|
517
|
-
</View>
|
|
518
|
-
|
|
519
|
-
<FeatureUnderDevNotice featureName="Performance & FPS Profiler" />
|
|
520
|
-
|
|
521
|
-
{/* Filter Category Tabs Carousel */}
|
|
522
|
-
<View style={perfStyles.categoryScrollWrapper}>
|
|
523
|
-
<ScrollView
|
|
524
|
-
horizontal
|
|
525
|
-
showsHorizontalScrollIndicator={false}
|
|
526
|
-
style={perfStyles.categoryScrollView}
|
|
527
|
-
contentContainerStyle={perfStyles.categoryScroll}>
|
|
528
|
-
{(
|
|
529
|
-
[
|
|
530
|
-
{
|
|
531
|
-
key: 'ALL',
|
|
532
|
-
label: t('performance.catAll'),
|
|
533
|
-
icon: (color: string) => <PerformanceIcon size={12} color={color} />,
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
key: 'JANKY',
|
|
537
|
-
label: t('performance.catJanky'),
|
|
538
|
-
icon: (color: string) => <CircleAlertIcon size={12} color={color} />,
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
key: 'NAVIGATION',
|
|
542
|
-
label: t('performance.catNavigation'),
|
|
543
|
-
icon: (color: string) => <MapIcon size={12} color={color} />,
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
key: 'RENDER',
|
|
547
|
-
label: t('performance.catRender'),
|
|
548
|
-
icon: (color: string) => <AtomIcon size={12} color={color} />,
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
key: 'MEMORY',
|
|
552
|
-
label: t('performance.catMemory'),
|
|
553
|
-
icon: (color: string) => <BrainIcon size={12} color={color} />,
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
key: 'IO',
|
|
557
|
-
label: t('performance.catIo'),
|
|
558
|
-
icon: (color: string) => <GlobeIcon size={12} color={color} />,
|
|
559
|
-
},
|
|
560
|
-
] as const
|
|
561
|
-
).map(cat => {
|
|
562
|
-
const isSelected = filterCategory === cat.key;
|
|
563
|
-
const iconColor = isSelected ? AppColors.white : AppColors.grayTextWeak;
|
|
564
|
-
return (
|
|
565
|
-
<TouchableScale
|
|
566
|
-
key={cat.key}
|
|
567
|
-
onPress={() => setFilterCategory(cat.key)}
|
|
568
|
-
style={[
|
|
569
|
-
perfStyles.categoryChip,
|
|
570
|
-
isSelected && perfStyles.categoryChipActive,
|
|
571
|
-
{flexDirection: 'row', alignItems: 'center', gap: 5},
|
|
572
|
-
]}>
|
|
573
|
-
{cat.icon(iconColor)}
|
|
574
|
-
<Text
|
|
575
|
-
style={[
|
|
576
|
-
perfStyles.categoryChipText,
|
|
577
|
-
isSelected && perfStyles.categoryChipTextActive,
|
|
578
|
-
]}>
|
|
579
|
-
{cat.label}
|
|
580
|
-
</Text>
|
|
581
|
-
</TouchableScale>
|
|
582
|
-
);
|
|
583
|
-
})}
|
|
584
|
-
</ScrollView>
|
|
585
|
-
</View>
|
|
586
|
-
|
|
587
|
-
{/* Main Content Scroll View */}
|
|
588
|
-
<ScrollView
|
|
589
|
-
style={perfStyles.scrollBody}
|
|
590
|
-
contentContainerStyle={perfStyles.scrollContent}
|
|
591
|
-
showsVerticalScrollIndicator={false}>
|
|
592
|
-
{/* ── 1. REAL-TIME FPS SCORECARD & SMOOTH AREA GRAPH ── */}
|
|
593
|
-
<View style={perfStyles.heroCard}>
|
|
594
|
-
<View style={perfStyles.heroHeaderRow}>
|
|
595
|
-
<View style={{flexDirection: 'row', alignItems: 'center', gap: 6}}>
|
|
596
|
-
<PerformanceIcon color={AppColors.purple} size={17} />
|
|
597
|
-
<View>
|
|
598
|
-
<Text style={perfStyles.heroTitle}>
|
|
599
|
-
{t('performance.fpsAreaChartTitle')}
|
|
600
|
-
</Text>
|
|
601
|
-
<Text style={perfStyles.heroSubTitle}>
|
|
602
|
-
{t('performance.fpsAreaChartSub')}
|
|
603
|
-
</Text>
|
|
604
|
-
</View>
|
|
605
|
-
</View>
|
|
606
|
-
|
|
607
|
-
{/* Health Grade Score Pill */}
|
|
608
|
-
<View
|
|
609
|
-
style={[
|
|
610
|
-
perfStyles.scorePill,
|
|
611
|
-
{backgroundColor: performanceScore.bg},
|
|
612
|
-
]}>
|
|
613
|
-
<Text
|
|
614
|
-
style={[
|
|
615
|
-
perfStyles.scorePillText,
|
|
616
|
-
{color: performanceScore.color},
|
|
617
|
-
]}>
|
|
618
|
-
{performanceScore.grade}
|
|
619
|
-
</Text>
|
|
620
|
-
</View>
|
|
621
|
-
</View>
|
|
622
|
-
|
|
623
|
-
{/* Primary Gauge Counter */}
|
|
624
|
-
<View style={perfStyles.primaryFpsRow}>
|
|
625
|
-
<View style={perfStyles.fpsBigNumberBox}>
|
|
626
|
-
<Text
|
|
627
|
-
style={[
|
|
628
|
-
perfStyles.fpsBigNumber,
|
|
629
|
-
{
|
|
630
|
-
color:
|
|
631
|
-
currentFps >= 55
|
|
632
|
-
? AppColors.emerald600
|
|
633
|
-
: currentFps >= 40
|
|
634
|
-
? AppColors.firebaseOrange
|
|
635
|
-
: AppColors.errorColor,
|
|
636
|
-
},
|
|
637
|
-
]}>
|
|
638
|
-
{currentFps}
|
|
639
|
-
</Text>
|
|
640
|
-
<Text style={perfStyles.fpsUnit}>{t('performance.fpsUnit')}</Text>
|
|
641
|
-
</View>
|
|
642
|
-
|
|
643
|
-
<View style={perfStyles.fpsStatsGrid}>
|
|
644
|
-
<View style={perfStyles.statItem}>
|
|
645
|
-
<Text style={perfStyles.statLabel}>
|
|
646
|
-
{t('performance.avgFrameTime')}
|
|
647
|
-
</Text>
|
|
648
|
-
<Text style={perfStyles.statValue}>{avgFps}</Text>
|
|
649
|
-
</View>
|
|
650
|
-
<View style={perfStyles.statItem}>
|
|
651
|
-
<Text style={perfStyles.statLabel}>
|
|
652
|
-
{t('performance.peakTime')}
|
|
653
|
-
</Text>
|
|
654
|
-
<Text
|
|
655
|
-
style={[
|
|
656
|
-
perfStyles.statValue,
|
|
657
|
-
minFps < 50 && {color: AppColors.firebaseOrange},
|
|
658
|
-
]}>
|
|
659
|
-
{minFps}
|
|
660
|
-
</Text>
|
|
661
|
-
</View>
|
|
662
|
-
<View style={perfStyles.statItem}>
|
|
663
|
-
<Text style={perfStyles.statLabel}>
|
|
664
|
-
{t('performance.jsLag')}
|
|
665
|
-
</Text>
|
|
666
|
-
<Text
|
|
667
|
-
style={[
|
|
668
|
-
perfStyles.statValue,
|
|
669
|
-
jsLagMs > 5 && {color: AppColors.firebaseOrange},
|
|
670
|
-
]}>
|
|
671
|
-
{jsLagMs}ms
|
|
672
|
-
</Text>
|
|
673
|
-
</View>
|
|
674
|
-
<View style={perfStyles.statItem}>
|
|
675
|
-
<Text style={perfStyles.statLabel}>
|
|
676
|
-
{t('performance.jankRate')}
|
|
677
|
-
</Text>
|
|
678
|
-
<Text style={perfStyles.statValue}>
|
|
679
|
-
{totalFrames > 0
|
|
680
|
-
? `${(
|
|
681
|
-
(jankyFrameCount / Math.max(1, totalFrames / 60)) *
|
|
682
|
-
100
|
|
683
|
-
).toFixed(0)}%`
|
|
684
|
-
: '0%'}
|
|
685
|
-
</Text>
|
|
686
|
-
</View>
|
|
687
|
-
</View>
|
|
688
|
-
</View>
|
|
689
|
-
|
|
690
|
-
{/* Interactive Scrub Tooltip */}
|
|
691
|
-
{activeScrubPoint && (
|
|
692
|
-
<View style={perfStyles.graphScrubTooltip}>
|
|
693
|
-
<Text style={perfStyles.graphScrubTooltipText}>
|
|
694
|
-
{activeScrubPoint.val} FPS •{' '}
|
|
695
|
-
{Number((1000 / Math.max(1, activeScrubPoint.val)).toFixed(1))}
|
|
696
|
-
ms
|
|
697
|
-
</Text>
|
|
698
|
-
</View>
|
|
699
|
-
)}
|
|
700
|
-
|
|
701
|
-
{/* Real-Time SVG Smooth Area & Trend Wave Graph */}
|
|
702
|
-
<View style={perfStyles.svgGraphContainer}>
|
|
703
|
-
<Svg
|
|
704
|
-
width="100%"
|
|
705
|
-
height={svgGraphHeight}
|
|
706
|
-
viewBox={`0 0 ${svgGraphWidth} ${svgGraphHeight}`}
|
|
707
|
-
preserveAspectRatio="none">
|
|
708
|
-
<Defs>
|
|
709
|
-
<LinearGradient
|
|
710
|
-
id="fpsAreaGradient"
|
|
711
|
-
x1="0"
|
|
712
|
-
y1="0"
|
|
713
|
-
x2="0"
|
|
714
|
-
y2="1">
|
|
715
|
-
<Stop
|
|
716
|
-
offset="0%"
|
|
717
|
-
stopColor={
|
|
718
|
-
avgFps >= 55
|
|
719
|
-
? AppColors.emerald500
|
|
720
|
-
: avgFps >= 40
|
|
721
|
-
? AppColors.amber500
|
|
722
|
-
: AppColors.errorColor
|
|
723
|
-
}
|
|
724
|
-
stopOpacity="0.32"
|
|
725
|
-
/>
|
|
726
|
-
<Stop
|
|
727
|
-
offset="100%"
|
|
728
|
-
stopColor={
|
|
729
|
-
avgFps >= 55
|
|
730
|
-
? AppColors.emerald500
|
|
731
|
-
: avgFps >= 40
|
|
732
|
-
? AppColors.amber500
|
|
733
|
-
: AppColors.errorColor
|
|
734
|
-
}
|
|
735
|
-
stopOpacity="0.02"
|
|
736
|
-
/>
|
|
737
|
-
</LinearGradient>
|
|
738
|
-
</Defs>
|
|
739
|
-
|
|
740
|
-
{/* 60 FPS Target Baseline */}
|
|
741
|
-
<Line
|
|
742
|
-
x1="0"
|
|
743
|
-
y1="7"
|
|
744
|
-
x2={svgGraphWidth}
|
|
745
|
-
y2="7"
|
|
746
|
-
stroke={AppColors.emerald500}
|
|
747
|
-
strokeWidth="1"
|
|
748
|
-
strokeDasharray="4,4"
|
|
749
|
-
opacity="0.4"
|
|
750
|
-
/>
|
|
751
|
-
|
|
752
|
-
{/* 30 FPS Warning Baseline */}
|
|
753
|
-
<Line
|
|
754
|
-
x1="0"
|
|
755
|
-
y1={svgGraphHeight / 2}
|
|
756
|
-
x2={svgGraphWidth}
|
|
757
|
-
y2={svgGraphHeight / 2}
|
|
758
|
-
stroke={AppColors.amber500}
|
|
759
|
-
strokeWidth="0.8"
|
|
760
|
-
strokeDasharray="3,3"
|
|
761
|
-
opacity="0.3"
|
|
762
|
-
/>
|
|
763
|
-
|
|
764
|
-
{/* Shaded Area Under Curve */}
|
|
765
|
-
{fpsGraphData.areaPath ? (
|
|
766
|
-
<Path
|
|
767
|
-
d={fpsGraphData.areaPath}
|
|
768
|
-
fill="url(#fpsAreaGradient)"
|
|
769
|
-
/>
|
|
770
|
-
) : null}
|
|
771
|
-
|
|
772
|
-
{/* Bezier Trend Line */}
|
|
773
|
-
{fpsGraphData.linePath ? (
|
|
774
|
-
<Path
|
|
775
|
-
d={fpsGraphData.linePath}
|
|
776
|
-
fill="none"
|
|
777
|
-
stroke={
|
|
778
|
-
avgFps >= 55
|
|
779
|
-
? AppColors.emerald600
|
|
780
|
-
: avgFps >= 40
|
|
781
|
-
? AppColors.amber600
|
|
782
|
-
: AppColors.errorColor
|
|
783
|
-
}
|
|
784
|
-
strokeWidth="2.2"
|
|
785
|
-
/>
|
|
786
|
-
) : null}
|
|
787
|
-
|
|
788
|
-
{/* Sample Nodes */}
|
|
789
|
-
{fpsGraphData.coords.map((c, idx) => {
|
|
790
|
-
const isSelected = selectedFpsPointIdx === idx;
|
|
791
|
-
const isDip = c.val < 50;
|
|
792
|
-
return (
|
|
793
|
-
<G key={idx}>
|
|
794
|
-
{isDip && (
|
|
795
|
-
<Circle
|
|
796
|
-
cx={c.x}
|
|
797
|
-
cy={c.y}
|
|
798
|
-
r="4"
|
|
799
|
-
fill={AppColors.errorColor}
|
|
800
|
-
opacity="0.25"
|
|
801
|
-
/>
|
|
802
|
-
)}
|
|
803
|
-
<Circle
|
|
804
|
-
cx={c.x}
|
|
805
|
-
cy={c.y}
|
|
806
|
-
r={isSelected ? 4 : isDip ? 2.5 : 1.8}
|
|
807
|
-
fill={
|
|
808
|
-
isSelected
|
|
809
|
-
? AppColors.brandPurple
|
|
810
|
-
: isDip
|
|
811
|
-
? AppColors.errorColor
|
|
812
|
-
: AppColors.emerald600
|
|
813
|
-
}
|
|
814
|
-
stroke={AppColors.white}
|
|
815
|
-
strokeWidth={isSelected ? 1.5 : 0.8}
|
|
816
|
-
/>
|
|
817
|
-
</G>
|
|
818
|
-
);
|
|
819
|
-
})}
|
|
820
|
-
</Svg>
|
|
821
|
-
|
|
822
|
-
{/* Invisible Touch Column Targets for Interactive Inspection */}
|
|
823
|
-
<View style={perfStyles.svgTouchOverlay}>
|
|
824
|
-
{fpsGraphData.coords.map((_, idx) => (
|
|
825
|
-
<TouchableOpacity
|
|
826
|
-
key={idx}
|
|
827
|
-
style={perfStyles.svgTouchCol}
|
|
828
|
-
activeOpacity={0.7}
|
|
829
|
-
onPress={() =>
|
|
830
|
-
setSelectedFpsPointIdx(
|
|
831
|
-
selectedFpsPointIdx === idx ? null : idx,
|
|
832
|
-
)
|
|
833
|
-
}
|
|
834
|
-
/>
|
|
835
|
-
))}
|
|
836
|
-
</View>
|
|
837
|
-
</View>
|
|
838
|
-
|
|
839
|
-
<View style={perfStyles.sparklineFooter}>
|
|
840
|
-
<Text style={perfStyles.sparklineFooterText}>
|
|
841
|
-
{t('performance.realtimeWindow')}
|
|
842
|
-
</Text>
|
|
843
|
-
<Text style={perfStyles.sparklineFooterTarget}>
|
|
844
|
-
{t('performance.target60Fps', {fps: avgFps})}
|
|
845
|
-
</Text>
|
|
846
|
-
</View>
|
|
847
|
-
</View>
|
|
848
|
-
|
|
849
|
-
{/* ── 1.5 NATIVE HARDWARE HEALTH & SYSTEM TELEMETRY CARD ── */}
|
|
850
|
-
<View style={perfStyles.budgetCard}>
|
|
851
|
-
<View style={perfStyles.budgetHeader}>
|
|
852
|
-
<View style={{flexDirection: 'row', alignItems: 'center', gap: 6}}>
|
|
853
|
-
<BoltIcon color={AppColors.brandPurple} size={15} />
|
|
854
|
-
<View>
|
|
855
|
-
<Text style={perfStyles.budgetTitle}>Native Hardware & System Health</Text>
|
|
856
|
-
<Text style={perfStyles.heroSubTitle}>Live kernel metrics, resident RAM, and thermal state</Text>
|
|
857
|
-
</View>
|
|
858
|
-
</View>
|
|
859
|
-
{systemMetrics && (
|
|
860
|
-
<View
|
|
861
|
-
style={{
|
|
862
|
-
paddingHorizontal: 7,
|
|
863
|
-
paddingVertical: 2.5,
|
|
864
|
-
borderRadius: 5,
|
|
865
|
-
backgroundColor:
|
|
866
|
-
systemMetrics.thermalState === 'nominal'
|
|
867
|
-
? `${AppColors.emerald600}18`
|
|
868
|
-
: systemMetrics.thermalState === 'fair'
|
|
869
|
-
? `${AppColors.amber800Warm}18`
|
|
870
|
-
: `${AppColors.errorColor}18`,
|
|
871
|
-
}}>
|
|
872
|
-
<Text
|
|
873
|
-
style={{
|
|
874
|
-
fontFamily: AppFonts.interBold,
|
|
875
|
-
fontSize: 9.5,
|
|
876
|
-
color:
|
|
877
|
-
systemMetrics.thermalState === 'nominal'
|
|
878
|
-
? AppColors.emerald600
|
|
879
|
-
: systemMetrics.thermalState === 'fair'
|
|
880
|
-
? AppColors.amber800Warm
|
|
881
|
-
: AppColors.errorColor,
|
|
882
|
-
textTransform: 'uppercase',
|
|
883
|
-
}}>
|
|
884
|
-
{systemMetrics.thermalState} THERMAL
|
|
885
|
-
</Text>
|
|
886
|
-
</View>
|
|
887
|
-
)}
|
|
888
|
-
</View>
|
|
889
|
-
|
|
890
|
-
<View style={{flexDirection: 'row', flexWrap: 'wrap', gap: 8, marginTop: 10}}>
|
|
891
|
-
<View style={{flex: 1, minWidth: 100, backgroundColor: AppColors.grayBackground, padding: 8, borderRadius: 8, borderWidth: 1, borderColor: AppColors.dividerColor}}>
|
|
892
|
-
<Text style={{fontFamily: AppFonts.interRegular, fontSize: 9.5, color: AppColors.grayTextWeak}}>Resident RAM</Text>
|
|
893
|
-
<Text style={{fontFamily: AppFonts.interBold, fontSize: 13, color: AppColors.brandPurple, marginTop: 2}}>
|
|
894
|
-
{systemMetrics ? `${systemMetrics.residentRamMb.toFixed(1)} MB` : '18.4 MB'}
|
|
895
|
-
</Text>
|
|
896
|
-
</View>
|
|
897
|
-
<View style={{flex: 1, minWidth: 100, backgroundColor: AppColors.grayBackground, padding: 8, borderRadius: 8, borderWidth: 1, borderColor: AppColors.dividerColor}}>
|
|
898
|
-
<Text style={{fontFamily: AppFonts.interRegular, fontSize: 9.5, color: AppColors.grayTextWeak}}>Total Physical RAM</Text>
|
|
899
|
-
<Text style={{fontFamily: AppFonts.interBold, fontSize: 13, color: AppColors.primaryBlack, marginTop: 2}}>
|
|
900
|
-
{systemMetrics ? `${Math.round(systemMetrics.totalPhysicalRamMb)} MB` : '3840 MB'}
|
|
901
|
-
</Text>
|
|
902
|
-
</View>
|
|
903
|
-
<View style={{flex: 1, minWidth: 100, backgroundColor: AppColors.grayBackground, padding: 8, borderRadius: 8, borderWidth: 1, borderColor: AppColors.dividerColor}}>
|
|
904
|
-
<Text style={{fontFamily: AppFonts.interRegular, fontSize: 9.5, color: AppColors.grayTextWeak}}>Active CPU Cores</Text>
|
|
905
|
-
<Text style={{fontFamily: AppFonts.interBold, fontSize: 13, color: AppColors.skyBlue, marginTop: 2}}>
|
|
906
|
-
{systemMetrics ? `${systemMetrics.activeCpuCores} Cores` : '6 Cores'}
|
|
907
|
-
</Text>
|
|
908
|
-
</View>
|
|
909
|
-
</View>
|
|
910
|
-
</View>
|
|
911
|
-
|
|
912
|
-
{/* ── 2. FRAME LATENCY DISTRIBUTION HISTOGRAM CARD ── */}
|
|
913
|
-
<View style={perfStyles.budgetCard}>
|
|
914
|
-
<View style={perfStyles.budgetHeader}>
|
|
915
|
-
<View>
|
|
916
|
-
<Text style={perfStyles.budgetTitle}>
|
|
917
|
-
{t('performance.frameLatencyDistTitle')}
|
|
918
|
-
</Text>
|
|
919
|
-
<Text style={perfStyles.heroSubTitle}>
|
|
920
|
-
{t('performance.frameLatencyDistSub')}
|
|
921
|
-
</Text>
|
|
922
|
-
</View>
|
|
923
|
-
</View>
|
|
924
|
-
|
|
925
|
-
<View style={perfStyles.histogramContainer}>
|
|
926
|
-
{latencyBuckets.map(b => (
|
|
927
|
-
<View key={b.key} style={perfStyles.histogramRow}>
|
|
928
|
-
<View style={perfStyles.histogramLabelCol}>
|
|
929
|
-
<View
|
|
930
|
-
style={[perfStyles.legendDot, {backgroundColor: b.color}]}
|
|
931
|
-
/>
|
|
932
|
-
<Text style={perfStyles.histogramLabelText}>{b.label}</Text>
|
|
933
|
-
</View>
|
|
934
|
-
|
|
935
|
-
<View style={perfStyles.histogramBarCol}>
|
|
936
|
-
<View style={perfStyles.histogramTrack}>
|
|
937
|
-
<View
|
|
938
|
-
style={[
|
|
939
|
-
perfStyles.histogramBarFill,
|
|
940
|
-
{
|
|
941
|
-
width: `${Math.max(b.percent > 0 ? 4 : 0, b.percent)}%`,
|
|
942
|
-
backgroundColor: b.color,
|
|
943
|
-
},
|
|
944
|
-
]}
|
|
945
|
-
/>
|
|
946
|
-
</View>
|
|
947
|
-
</View>
|
|
948
|
-
|
|
949
|
-
<View style={perfStyles.histogramStatsCol}>
|
|
950
|
-
<Text
|
|
951
|
-
style={[
|
|
952
|
-
perfStyles.histogramPercentText,
|
|
953
|
-
{color: b.color},
|
|
954
|
-
]}>
|
|
955
|
-
{b.percent}%
|
|
956
|
-
</Text>
|
|
957
|
-
<Text style={perfStyles.histogramCountText}>
|
|
958
|
-
({b.count})
|
|
959
|
-
</Text>
|
|
960
|
-
</View>
|
|
961
|
-
</View>
|
|
962
|
-
))}
|
|
963
|
-
</View>
|
|
964
|
-
</View>
|
|
965
|
-
|
|
966
|
-
{/* ── 3. FRAME BUDGET BREAKDOWN CARD ── */}
|
|
967
|
-
<View style={perfStyles.budgetCard}>
|
|
968
|
-
<View style={perfStyles.budgetHeader}>
|
|
969
|
-
<Text style={perfStyles.budgetTitle}>{t('performance.budgetUsage')}</Text>
|
|
970
|
-
<Text style={perfStyles.budgetHeadroom}>
|
|
971
|
-
{t('performance.budgetHeadroom', {
|
|
972
|
-
time: frameBudgetStats.freeTime,
|
|
973
|
-
percent: frameBudgetStats.headroomPercent,
|
|
974
|
-
})}
|
|
975
|
-
</Text>
|
|
976
|
-
</View>
|
|
977
|
-
|
|
978
|
-
{/* Multi-colored segmented frame budget bar */}
|
|
979
|
-
<View style={perfStyles.budgetBarContainer}>
|
|
980
|
-
<View
|
|
981
|
-
style={[
|
|
982
|
-
perfStyles.budgetBarSegment,
|
|
983
|
-
{flex: Math.max(0.5, frameBudgetStats.jsTime), backgroundColor: AppColors.sky400},
|
|
984
|
-
]}
|
|
985
|
-
/>
|
|
986
|
-
<View
|
|
987
|
-
style={[
|
|
988
|
-
perfStyles.budgetBarSegment,
|
|
989
|
-
{flex: Math.max(0.5, frameBudgetStats.layoutTime), backgroundColor: AppColors.indigo500},
|
|
990
|
-
]}
|
|
991
|
-
/>
|
|
992
|
-
<View
|
|
993
|
-
style={[
|
|
994
|
-
perfStyles.budgetBarSegment,
|
|
995
|
-
{flex: Math.max(0.5, frameBudgetStats.renderTime), backgroundColor: AppColors.pink400},
|
|
996
|
-
]}
|
|
997
|
-
/>
|
|
998
|
-
<View
|
|
999
|
-
style={[
|
|
1000
|
-
perfStyles.budgetBarSegment,
|
|
1001
|
-
{flex: Math.max(0.5, frameBudgetStats.freeTime), backgroundColor: AppColors.emerald400},
|
|
1002
|
-
]}
|
|
1003
|
-
/>
|
|
1004
|
-
</View>
|
|
1005
|
-
|
|
1006
|
-
<View style={perfStyles.budgetLegendGrid}>
|
|
1007
|
-
<View style={perfStyles.legendItem}>
|
|
1008
|
-
<View style={[perfStyles.legendDot, {backgroundColor: AppColors.sky400}]} />
|
|
1009
|
-
<Text style={perfStyles.legendText}>
|
|
1010
|
-
{t('performance.jsExec', {time: frameBudgetStats.jsTime})}
|
|
1011
|
-
</Text>
|
|
1012
|
-
</View>
|
|
1013
|
-
<View style={perfStyles.legendItem}>
|
|
1014
|
-
<View style={[perfStyles.legendDot, {backgroundColor: AppColors.indigo500}]} />
|
|
1015
|
-
<Text style={perfStyles.legendText}>
|
|
1016
|
-
{t('performance.yogaLayoutTime', {time: frameBudgetStats.layoutTime})}
|
|
1017
|
-
</Text>
|
|
1018
|
-
</View>
|
|
1019
|
-
<View style={perfStyles.legendItem}>
|
|
1020
|
-
<View style={[perfStyles.legendDot, {backgroundColor: AppColors.pink400}]} />
|
|
1021
|
-
<Text style={perfStyles.legendText}>
|
|
1022
|
-
{t('performance.uiRenderTime', {time: frameBudgetStats.renderTime})}
|
|
1023
|
-
</Text>
|
|
1024
|
-
</View>
|
|
1025
|
-
<View style={perfStyles.legendItem}>
|
|
1026
|
-
<View style={[perfStyles.legendDot, {backgroundColor: AppColors.emerald400}]} />
|
|
1027
|
-
<Text style={[perfStyles.legendText, {color: AppColors.emerald600, fontFamily: AppFonts.interBold}]}>
|
|
1028
|
-
{t('performance.freeTime', {time: frameBudgetStats.freeTime})}
|
|
1029
|
-
</Text>
|
|
1030
|
-
</View>
|
|
1031
|
-
</View>
|
|
1032
|
-
</View>
|
|
1033
|
-
|
|
1034
|
-
{/* ── 3. RUNTIME ENGINE & MEMORY SUMMARY ── */}
|
|
1035
|
-
<View style={perfStyles.engineSummaryGrid}>
|
|
1036
|
-
<View style={perfStyles.engineSummaryCard}>
|
|
1037
|
-
<Text style={perfStyles.engineSummaryLabel}>{t('performance.jsEngine')}</Text>
|
|
1038
|
-
<Text style={perfStyles.engineSummaryValue}>{runtimeDiagnostics.jsEngineName}</Text>
|
|
1039
|
-
<Text style={perfStyles.engineSummarySub}>{runtimeDiagnostics.jsEngineSub}</Text>
|
|
1040
|
-
</View>
|
|
1041
|
-
<View style={perfStyles.engineSummaryCard}>
|
|
1042
|
-
<Text style={perfStyles.engineSummaryLabel}>{t('performance.uiRenderThread')}</Text>
|
|
1043
|
-
<Text style={perfStyles.engineSummaryValue}>{runtimeDiagnostics.uiArchName}</Text>
|
|
1044
|
-
<Text style={perfStyles.engineSummarySub}>{runtimeDiagnostics.uiArchSub}</Text>
|
|
1045
|
-
</View>
|
|
1046
|
-
<View style={perfStyles.engineSummaryCard}>
|
|
1047
|
-
<Text style={perfStyles.engineSummaryLabel}>{t('performance.tabMemory')}</Text>
|
|
1048
|
-
<Text style={perfStyles.engineSummaryValue}>{runtimeDiagnostics.usedHeapMb} MB</Text>
|
|
1049
|
-
<Text style={perfStyles.engineSummarySub}>
|
|
1050
|
-
{t('performance.heapAllocatedSub', {allocated: runtimeDiagnostics.totalAllocMb})}
|
|
1051
|
-
</Text>
|
|
1052
|
-
</View>
|
|
1053
|
-
</View>
|
|
1054
|
-
|
|
1055
|
-
{/* ── 4. PERFORMANCE LOGS & DETAILED EVENTS ── */}
|
|
1056
|
-
<View style={perfStyles.logsHeaderRow}>
|
|
1057
|
-
<Text style={perfStyles.logsSectionHeading}>
|
|
1058
|
-
{t('performance.recordedEvents')} ({filteredEvents.length})
|
|
1059
|
-
</Text>
|
|
1060
|
-
{events.length > 0 && (
|
|
1061
|
-
<TouchableScale onPress={clearEvents}>
|
|
1062
|
-
<Text style={perfStyles.clearLink}>{t('common.clear')}</Text>
|
|
1063
|
-
</TouchableScale>
|
|
1064
|
-
)}
|
|
1065
|
-
</View>
|
|
1066
|
-
|
|
1067
|
-
{filteredEvents.length === 0 ? (
|
|
1068
|
-
<View style={perfStyles.emptyCard}>
|
|
1069
|
-
<BoltIcon color={AppColors.amber500} size={30} />
|
|
1070
|
-
<Text style={perfStyles.emptyTitle}>
|
|
1071
|
-
{search.trim().length > 0 ? 'No Matching Events' : t('performance.emptyTitle')}
|
|
1072
|
-
</Text>
|
|
1073
|
-
<Text style={perfStyles.emptySub}>
|
|
1074
|
-
{search.trim().length > 0
|
|
1075
|
-
? `No performance events match "${search}"`
|
|
1076
|
-
: t('performance.emptySubtitle')}
|
|
1077
|
-
</Text>
|
|
1078
|
-
{search.trim().length > 0 && (
|
|
1079
|
-
<TouchableScale
|
|
1080
|
-
onPress={() => setSearch('')}
|
|
1081
|
-
style={{
|
|
1082
|
-
marginTop: 10,
|
|
1083
|
-
paddingHorizontal: 14,
|
|
1084
|
-
paddingVertical: 6,
|
|
1085
|
-
borderRadius: 8,
|
|
1086
|
-
backgroundColor: AppColors.grayBackground,
|
|
1087
|
-
borderWidth: 1,
|
|
1088
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
1089
|
-
}}>
|
|
1090
|
-
<Text style={{color: AppColors.brandPurple, fontSize: 12, fontFamily: AppFonts.interBold}}>
|
|
1091
|
-
Clear Search
|
|
1092
|
-
</Text>
|
|
1093
|
-
</TouchableScale>
|
|
1094
|
-
)}
|
|
1095
|
-
</View>
|
|
1096
|
-
) : (
|
|
1097
|
-
filteredEvents.map(event => {
|
|
1098
|
-
const isOptimal = event.severity === 'optimal';
|
|
1099
|
-
const isWarning = event.severity === 'warning';
|
|
1100
|
-
const isCritical = event.severity === 'critical';
|
|
1101
|
-
const isExpanded = !!expandedEventIds[event.id];
|
|
1102
|
-
|
|
1103
|
-
const badgeBg = isOptimal ? AppColors.greenBg : isWarning ? AppColors.amberBg : AppColors.errorCardBg;
|
|
1104
|
-
const badgeBorder = isOptimal ? AppColors.greenBorder : isWarning ? AppColors.lightOrange : AppColors.errorBorder;
|
|
1105
|
-
const badgeColor = isOptimal ? AppColors.emerald600 : isWarning ? AppColors.amber700 : AppColors.errorColor;
|
|
1106
|
-
|
|
1107
|
-
return (
|
|
1108
|
-
<TouchableScale
|
|
1109
|
-
key={event.id}
|
|
1110
|
-
onPress={() => toggleEventExpand(event.id)}
|
|
1111
|
-
style={[
|
|
1112
|
-
perfStyles.eventCard,
|
|
1113
|
-
isCritical && {borderColor: AppColors.errorBorder, backgroundColor: AppColors.errorCardBg},
|
|
1114
|
-
]}>
|
|
1115
|
-
<View style={perfStyles.eventTopRow}>
|
|
1116
|
-
<View style={perfStyles.fpsBadgeGroup}>
|
|
1117
|
-
<View
|
|
1118
|
-
style={[
|
|
1119
|
-
perfStyles.fpsBadge,
|
|
1120
|
-
{backgroundColor: badgeBg, borderColor: badgeBorder},
|
|
1121
|
-
]}>
|
|
1122
|
-
<Text style={[perfStyles.fpsBadgeText, {color: badgeColor}]}>
|
|
1123
|
-
{event.fps} FPS
|
|
1124
|
-
</Text>
|
|
1125
|
-
</View>
|
|
1126
|
-
|
|
1127
|
-
{/* Dropped Frames Badge */}
|
|
1128
|
-
<View
|
|
1129
|
-
style={[
|
|
1130
|
-
perfStyles.droppedBadge,
|
|
1131
|
-
(event.droppedFrames ?? Math.max(0, 60 - event.fps)) > 0
|
|
1132
|
-
? perfStyles.droppedBadgeWarning
|
|
1133
|
-
: perfStyles.droppedBadgeOptimal,
|
|
1134
|
-
]}>
|
|
1135
|
-
<Text
|
|
1136
|
-
style={[
|
|
1137
|
-
perfStyles.droppedBadgeText,
|
|
1138
|
-
(event.droppedFrames ?? Math.max(0, 60 - event.fps)) > 0
|
|
1139
|
-
? {color: AppColors.red600}
|
|
1140
|
-
: {color: AppColors.emerald600},
|
|
1141
|
-
]}>
|
|
1142
|
-
{(event.droppedFrames ?? Math.max(0, 60 - event.fps)) > 0
|
|
1143
|
-
? t('performance.droppedFrames', {count: event.droppedFrames ?? Math.max(0, 60 - event.fps)})
|
|
1144
|
-
: t('performance.zeroDropped')}
|
|
1145
|
-
</Text>
|
|
1146
|
-
</View>
|
|
1147
|
-
|
|
1148
|
-
{/* Bottleneck Thread Tag */}
|
|
1149
|
-
{event.bottleneckThread && (
|
|
1150
|
-
<View style={[perfStyles.bottleneckTag, {flexDirection: 'row', alignItems: 'center', gap: 3}]}>
|
|
1151
|
-
{event.bottleneckThread === 'JS Thread' && (
|
|
1152
|
-
<BoltIcon size={10} color={AppColors.warningIconGold} />
|
|
1153
|
-
)}
|
|
1154
|
-
<Text style={perfStyles.bottleneckTagText}>
|
|
1155
|
-
{event.bottleneckThread === 'JS Thread'
|
|
1156
|
-
? t('performance.jsBound')
|
|
1157
|
-
: event.bottleneckThread === 'UI Thread'
|
|
1158
|
-
? t('performance.uiBound')
|
|
1159
|
-
: t('performance.balanced')}
|
|
1160
|
-
</Text>
|
|
1161
|
-
</View>
|
|
1162
|
-
)}
|
|
1163
|
-
</View>
|
|
1164
|
-
|
|
1165
|
-
<View style={{flexDirection: 'row', alignItems: 'center', gap: 6}}>
|
|
1166
|
-
<CopyButton
|
|
1167
|
-
value={() => event}
|
|
1168
|
-
label={t('common.copyJson')}
|
|
1169
|
-
/>
|
|
1170
|
-
<ChevronIcon
|
|
1171
|
-
isExpanded={isExpanded}
|
|
1172
|
-
size={14}
|
|
1173
|
-
color={AppColors.grayTextWeak}
|
|
1174
|
-
/>
|
|
1175
|
-
</View>
|
|
1176
|
-
</View>
|
|
1177
|
-
|
|
1178
|
-
{/* Event Label & Meta */}
|
|
1179
|
-
<View style={{marginTop: 4}}>
|
|
1180
|
-
<HighlightText
|
|
1181
|
-
text={event.label}
|
|
1182
|
-
search={search}
|
|
1183
|
-
style={perfStyles.eventLabel}
|
|
1184
|
-
highlightStyle={perfStyles.searchHighlight}
|
|
1185
|
-
/>
|
|
1186
|
-
<View style={perfStyles.eventMetaRow}>
|
|
1187
|
-
<Text style={perfStyles.eventMeta}>
|
|
1188
|
-
{t('performance.msTotal', {
|
|
1189
|
-
duration: event.durationMs,
|
|
1190
|
-
time: new Date(event.timestamp).toLocaleTimeString(),
|
|
1191
|
-
})}
|
|
1192
|
-
</Text>
|
|
1193
|
-
<Text style={perfStyles.eventMetaDot}>•</Text>
|
|
1194
|
-
<Text
|
|
1195
|
-
style={[
|
|
1196
|
-
perfStyles.frameBudgetHint,
|
|
1197
|
-
event.durationMs > 16.67
|
|
1198
|
-
? {color: AppColors.amber800Warm}
|
|
1199
|
-
: {color: AppColors.emerald600},
|
|
1200
|
-
]}>
|
|
1201
|
-
{t('performance.frameBudgetMs', {
|
|
1202
|
-
time: event.durationMs,
|
|
1203
|
-
budget: Number(((event.durationMs / 16.67) * 100).toFixed(0)),
|
|
1204
|
-
})}
|
|
1205
|
-
</Text>
|
|
1206
|
-
</View>
|
|
1207
|
-
</View>
|
|
1208
|
-
|
|
1209
|
-
{/* Visual Frame Time Budget Bar */}
|
|
1210
|
-
<View style={perfStyles.frameBarTrack}>
|
|
1211
|
-
<View
|
|
1212
|
-
style={[
|
|
1213
|
-
perfStyles.frameBarFill,
|
|
1214
|
-
{
|
|
1215
|
-
width: `${Math.min(100, Math.max(10, (event.durationMs / 33.33) * 100))}%`,
|
|
1216
|
-
backgroundColor: badgeColor,
|
|
1217
|
-
},
|
|
1218
|
-
]}
|
|
1219
|
-
/>
|
|
1220
|
-
</View>
|
|
1221
|
-
|
|
1222
|
-
<HighlightText
|
|
1223
|
-
text={event.detail}
|
|
1224
|
-
search={search}
|
|
1225
|
-
style={perfStyles.eventDetail}
|
|
1226
|
-
highlightStyle={perfStyles.searchHighlight}
|
|
1227
|
-
/>
|
|
1228
|
-
|
|
1229
|
-
{/* ── EXPANDABLE IN-DEPTH METRICS ACCORDION ── */}
|
|
1230
|
-
{isExpanded && (
|
|
1231
|
-
<View style={perfStyles.expandedDetailBox}>
|
|
1232
|
-
{/* Screen / Component Context */}
|
|
1233
|
-
{(event.screenName || event.source) && (
|
|
1234
|
-
<View style={perfStyles.sourceRow}>
|
|
1235
|
-
<Text style={perfStyles.sourceTag}>{t('performance.screenContext')}</Text>
|
|
1236
|
-
<Text style={perfStyles.sourceText} numberOfLines={1}>
|
|
1237
|
-
{event.screenName || event.source}
|
|
1238
|
-
</Text>
|
|
1239
|
-
</View>
|
|
1240
|
-
)}
|
|
1241
|
-
|
|
1242
|
-
{/* Frame Metrics Grid */}
|
|
1243
|
-
<View style={perfStyles.fpsMetricsGrid}>
|
|
1244
|
-
<View style={perfStyles.fpsMetricItem}>
|
|
1245
|
-
<Text style={perfStyles.fpsMetricLabel}>{t('performance.target60Fps', {fps: event.fps})}</Text>
|
|
1246
|
-
<Text style={[perfStyles.fpsMetricVal, {color: badgeColor}]}>
|
|
1247
|
-
{event.fps} FPS
|
|
1248
|
-
</Text>
|
|
1249
|
-
</View>
|
|
1250
|
-
<View style={perfStyles.fpsMetricItem}>
|
|
1251
|
-
<Text style={perfStyles.fpsMetricLabel}>{t('performance.frameDuration')}</Text>
|
|
1252
|
-
<Text style={perfStyles.fpsMetricVal}>
|
|
1253
|
-
{event.durationMs} ms
|
|
1254
|
-
</Text>
|
|
1255
|
-
</View>
|
|
1256
|
-
<View style={perfStyles.fpsMetricItem}>
|
|
1257
|
-
<Text style={perfStyles.fpsMetricLabel}>{t('performance.jankRate')}</Text>
|
|
1258
|
-
<Text
|
|
1259
|
-
style={[
|
|
1260
|
-
perfStyles.fpsMetricVal,
|
|
1261
|
-
(event.droppedFrames ?? 0) > 0 ? {color: AppColors.red600} : {color: AppColors.emerald600},
|
|
1262
|
-
]}>
|
|
1263
|
-
{event.droppedFrames ?? Math.max(0, 60 - event.fps)} frames
|
|
1264
|
-
</Text>
|
|
1265
|
-
</View>
|
|
1266
|
-
<View style={perfStyles.fpsMetricItem}>
|
|
1267
|
-
<Text style={perfStyles.fpsMetricLabel}>{t('performance.bottleneck')}</Text>
|
|
1268
|
-
<Text style={perfStyles.fpsMetricVal}>
|
|
1269
|
-
{event.bottleneckThread || t('performance.balanced')}
|
|
1270
|
-
</Text>
|
|
1271
|
-
</View>
|
|
1272
|
-
</View>
|
|
1273
|
-
|
|
1274
|
-
{/* Thread Timing Breakdown */}
|
|
1275
|
-
{event.breakdown && (
|
|
1276
|
-
<View style={perfStyles.breakdownGrid}>
|
|
1277
|
-
<View style={perfStyles.breakdownCol}>
|
|
1278
|
-
<Text style={perfStyles.breakdownLabel}>{t('performance.jsThread')}</Text>
|
|
1279
|
-
<Text style={perfStyles.breakdownVal}>
|
|
1280
|
-
{event.breakdown.jsTimeMs} ms
|
|
1281
|
-
</Text>
|
|
1282
|
-
</View>
|
|
1283
|
-
<View style={perfStyles.breakdownCol}>
|
|
1284
|
-
<Text style={perfStyles.breakdownLabel}>{t('performance.uiThread')}</Text>
|
|
1285
|
-
<Text style={perfStyles.breakdownVal}>
|
|
1286
|
-
{event.breakdown.uiTimeMs} ms
|
|
1287
|
-
</Text>
|
|
1288
|
-
</View>
|
|
1289
|
-
{event.breakdown.bridgeLatencyMs != null && (
|
|
1290
|
-
<View style={perfStyles.breakdownCol}>
|
|
1291
|
-
<Text style={perfStyles.breakdownLabel}>{t('performance.jsiLatency')}</Text>
|
|
1292
|
-
<Text style={perfStyles.breakdownVal}>
|
|
1293
|
-
{event.breakdown.bridgeLatencyMs} ms
|
|
1294
|
-
</Text>
|
|
1295
|
-
</View>
|
|
1296
|
-
)}
|
|
1297
|
-
{event.heapDeltaKb != null && (
|
|
1298
|
-
<View style={perfStyles.breakdownCol}>
|
|
1299
|
-
<Text style={perfStyles.breakdownLabel}>{t('performance.heapImpact')}</Text>
|
|
1300
|
-
<Text
|
|
1301
|
-
style={[
|
|
1302
|
-
perfStyles.breakdownVal,
|
|
1303
|
-
{color: event.heapDeltaKb > 0 ? AppColors.amber700 : AppColors.emerald600},
|
|
1304
|
-
]}>
|
|
1305
|
-
{event.heapDeltaKb > 0 ? `+${event.heapDeltaKb}` : event.heapDeltaKb} KB
|
|
1306
|
-
</Text>
|
|
1307
|
-
</View>
|
|
1308
|
-
)}
|
|
1309
|
-
</View>
|
|
1310
|
-
)}
|
|
1311
|
-
|
|
1312
|
-
{/* Actionable Optimization Tip */}
|
|
1313
|
-
{event.advice && (
|
|
1314
|
-
<View style={perfStyles.adviceCard}>
|
|
1315
|
-
<View style={{flexDirection: 'row', alignItems: 'center', gap: 5}}>
|
|
1316
|
-
<LightbulbIcon color={AppColors.purpleShade700} size={12} />
|
|
1317
|
-
<Text style={perfStyles.adviceHeading}>{t('performance.optimizationTip')}</Text>
|
|
1318
|
-
</View>
|
|
1319
|
-
<Text style={perfStyles.adviceBodyText}>{event.advice}</Text>
|
|
1320
|
-
</View>
|
|
1321
|
-
)}
|
|
1322
|
-
</View>
|
|
1323
|
-
)}
|
|
1324
|
-
</TouchableScale>
|
|
1325
|
-
);
|
|
1326
|
-
})
|
|
1327
|
-
)}
|
|
1328
|
-
|
|
1329
|
-
<EndOfListFooter
|
|
1330
|
-
count={filteredEvents.length}
|
|
1331
|
-
label={t('performance.recordedEvents')}
|
|
1332
|
-
/>
|
|
1333
|
-
</ScrollView>
|
|
1334
|
-
</View>
|
|
1335
|
-
);
|
|
1336
|
-
});
|
|
1337
|
-
|
|
1338
|
-
const perfStyles = StyleSheet.create({
|
|
1339
|
-
container: {
|
|
1340
|
-
flex: 1,
|
|
1341
|
-
backgroundColor: AppColors.grayBackground,
|
|
1342
|
-
},
|
|
1343
|
-
headerBar: {
|
|
1344
|
-
flexDirection: 'row',
|
|
1345
|
-
alignItems: 'center',
|
|
1346
|
-
paddingHorizontal: 12,
|
|
1347
|
-
paddingVertical: 8,
|
|
1348
|
-
backgroundColor: AppColors.white,
|
|
1349
|
-
borderBottomWidth: 1,
|
|
1350
|
-
borderBottomColor: AppColors.dividerColor,
|
|
1351
|
-
gap: 8,
|
|
1352
|
-
},
|
|
1353
|
-
searchBox: {
|
|
1354
|
-
flex: 1,
|
|
1355
|
-
flexDirection: 'row',
|
|
1356
|
-
alignItems: 'center',
|
|
1357
|
-
backgroundColor: AppColors.grayBackground,
|
|
1358
|
-
borderRadius: 8,
|
|
1359
|
-
paddingHorizontal: 8,
|
|
1360
|
-
height: 36,
|
|
1361
|
-
gap: 6,
|
|
1362
|
-
borderWidth: 1,
|
|
1363
|
-
borderColor: AppColors.dividerColor,
|
|
1364
|
-
},
|
|
1365
|
-
searchInput: {
|
|
1366
|
-
flex: 1,
|
|
1367
|
-
fontFamily: AppFonts.interRegular,
|
|
1368
|
-
fontSize: 12,
|
|
1369
|
-
color: AppColors.primaryBlack,
|
|
1370
|
-
paddingVertical: 0,
|
|
1371
|
-
},
|
|
1372
|
-
recordToggleBtn: {
|
|
1373
|
-
flexDirection: 'row',
|
|
1374
|
-
alignItems: 'center',
|
|
1375
|
-
gap: 5,
|
|
1376
|
-
paddingHorizontal: 8,
|
|
1377
|
-
paddingVertical: 6,
|
|
1378
|
-
borderRadius: 7,
|
|
1379
|
-
borderWidth: 1,
|
|
1380
|
-
},
|
|
1381
|
-
recordToggleActive: {
|
|
1382
|
-
backgroundColor: `${AppColors.errorColor}14`,
|
|
1383
|
-
borderColor: `${AppColors.errorColor}30`,
|
|
1384
|
-
},
|
|
1385
|
-
recordToggleInactive: {
|
|
1386
|
-
backgroundColor: AppColors.graySurface,
|
|
1387
|
-
borderColor: AppColors.dividerColor,
|
|
1388
|
-
},
|
|
1389
|
-
recordingDot: {
|
|
1390
|
-
width: 6,
|
|
1391
|
-
height: 6,
|
|
1392
|
-
borderRadius: 3,
|
|
1393
|
-
},
|
|
1394
|
-
recordToggleText: {
|
|
1395
|
-
fontFamily: AppFonts.interBold,
|
|
1396
|
-
fontSize: 11,
|
|
1397
|
-
},
|
|
1398
|
-
categoryScrollWrapper: {
|
|
1399
|
-
backgroundColor: AppColors.white,
|
|
1400
|
-
borderBottomWidth: 1,
|
|
1401
|
-
borderBottomColor: AppColors.dividerColor,
|
|
1402
|
-
height: 42,
|
|
1403
|
-
},
|
|
1404
|
-
categoryScrollView: {
|
|
1405
|
-
flexGrow: 0,
|
|
1406
|
-
height: 42,
|
|
1407
|
-
},
|
|
1408
|
-
categoryScroll: {
|
|
1409
|
-
flexDirection: 'row',
|
|
1410
|
-
alignItems: 'center',
|
|
1411
|
-
gap: 6,
|
|
1412
|
-
paddingHorizontal: 12,
|
|
1413
|
-
height: 42,
|
|
1414
|
-
},
|
|
1415
|
-
categoryChip: {
|
|
1416
|
-
flexDirection: 'row',
|
|
1417
|
-
alignItems: 'center',
|
|
1418
|
-
justifyContent: 'center',
|
|
1419
|
-
paddingHorizontal: 12,
|
|
1420
|
-
height: 28,
|
|
1421
|
-
borderRadius: 14,
|
|
1422
|
-
backgroundColor: AppColors.grayBackground,
|
|
1423
|
-
borderWidth: 1,
|
|
1424
|
-
borderColor: AppColors.dividerColor,
|
|
1425
|
-
},
|
|
1426
|
-
categoryChipActive: {
|
|
1427
|
-
backgroundColor: AppColors.brandPurple,
|
|
1428
|
-
borderColor: AppColors.brandPurple,
|
|
1429
|
-
},
|
|
1430
|
-
categoryChipText: {
|
|
1431
|
-
fontFamily: AppFonts.interMedium,
|
|
1432
|
-
fontSize: 11,
|
|
1433
|
-
color: AppColors.grayTextStrong,
|
|
1434
|
-
},
|
|
1435
|
-
categoryChipTextActive: {
|
|
1436
|
-
fontFamily: AppFonts.interBold,
|
|
1437
|
-
color: AppColors.white,
|
|
1438
|
-
},
|
|
1439
|
-
scrollBody: {
|
|
1440
|
-
flex: 1,
|
|
1441
|
-
},
|
|
1442
|
-
scrollContent: {
|
|
1443
|
-
padding: 12,
|
|
1444
|
-
gap: 10,
|
|
1445
|
-
},
|
|
1446
|
-
heroCard: {
|
|
1447
|
-
backgroundColor: AppColors.white,
|
|
1448
|
-
borderRadius: 12,
|
|
1449
|
-
padding: 14,
|
|
1450
|
-
borderWidth: 1,
|
|
1451
|
-
borderColor: AppColors.dividerColor,
|
|
1452
|
-
shadowColor: AppColors.black,
|
|
1453
|
-
shadowOffset: {width: 0, height: 1},
|
|
1454
|
-
shadowOpacity: 0.05,
|
|
1455
|
-
shadowRadius: 3,
|
|
1456
|
-
elevation: 1,
|
|
1457
|
-
},
|
|
1458
|
-
heroHeaderRow: {
|
|
1459
|
-
flexDirection: 'row',
|
|
1460
|
-
alignItems: 'center',
|
|
1461
|
-
justifyContent: 'space-between',
|
|
1462
|
-
marginBottom: 10,
|
|
1463
|
-
},
|
|
1464
|
-
heroTitle: {
|
|
1465
|
-
fontFamily: AppFonts.interBold,
|
|
1466
|
-
fontSize: 13,
|
|
1467
|
-
color: AppColors.primaryBlack,
|
|
1468
|
-
},
|
|
1469
|
-
heroSubTitle: {
|
|
1470
|
-
fontFamily: AppFonts.interRegular,
|
|
1471
|
-
fontSize: 9.5,
|
|
1472
|
-
color: AppColors.grayTextWeak,
|
|
1473
|
-
marginTop: 1,
|
|
1474
|
-
},
|
|
1475
|
-
scorePill: {
|
|
1476
|
-
paddingHorizontal: 8,
|
|
1477
|
-
paddingVertical: 3,
|
|
1478
|
-
borderRadius: 6,
|
|
1479
|
-
},
|
|
1480
|
-
scorePillText: {
|
|
1481
|
-
fontFamily: AppFonts.interBold,
|
|
1482
|
-
fontSize: 10.5,
|
|
1483
|
-
},
|
|
1484
|
-
primaryFpsRow: {
|
|
1485
|
-
flexDirection: 'row',
|
|
1486
|
-
alignItems: 'center',
|
|
1487
|
-
justifyContent: 'space-between',
|
|
1488
|
-
paddingVertical: 6,
|
|
1489
|
-
},
|
|
1490
|
-
fpsBigNumberBox: {
|
|
1491
|
-
flexDirection: 'row',
|
|
1492
|
-
alignItems: 'baseline',
|
|
1493
|
-
gap: 4,
|
|
1494
|
-
minWidth: 80,
|
|
1495
|
-
},
|
|
1496
|
-
fpsBigNumber: {
|
|
1497
|
-
fontFamily: AppFonts.interBold,
|
|
1498
|
-
fontSize: 42,
|
|
1499
|
-
lineHeight: 48,
|
|
1500
|
-
letterSpacing: -1,
|
|
1501
|
-
minWidth: 54,
|
|
1502
|
-
},
|
|
1503
|
-
fpsUnit: {
|
|
1504
|
-
fontFamily: AppFonts.interBold,
|
|
1505
|
-
fontSize: 14,
|
|
1506
|
-
color: AppColors.grayTextWeak,
|
|
1507
|
-
},
|
|
1508
|
-
fpsStatsGrid: {
|
|
1509
|
-
flexDirection: 'row',
|
|
1510
|
-
alignItems: 'center',
|
|
1511
|
-
gap: 8,
|
|
1512
|
-
},
|
|
1513
|
-
statItem: {
|
|
1514
|
-
alignItems: 'center',
|
|
1515
|
-
minWidth: 50,
|
|
1516
|
-
},
|
|
1517
|
-
statLabel: {
|
|
1518
|
-
fontFamily: AppFonts.interRegular,
|
|
1519
|
-
fontSize: 10,
|
|
1520
|
-
color: AppColors.grayTextWeak,
|
|
1521
|
-
},
|
|
1522
|
-
statValue: {
|
|
1523
|
-
fontFamily: AppFonts.interBold,
|
|
1524
|
-
fontSize: 13,
|
|
1525
|
-
color: AppColors.primaryBlack,
|
|
1526
|
-
marginTop: 2,
|
|
1527
|
-
textAlign: 'center',
|
|
1528
|
-
},
|
|
1529
|
-
graphScrubTooltip: {
|
|
1530
|
-
alignSelf: 'center',
|
|
1531
|
-
backgroundColor: AppColors.primaryBlack,
|
|
1532
|
-
paddingHorizontal: 8,
|
|
1533
|
-
paddingVertical: 3,
|
|
1534
|
-
borderRadius: 6,
|
|
1535
|
-
marginBottom: 4,
|
|
1536
|
-
},
|
|
1537
|
-
graphScrubTooltipText: {
|
|
1538
|
-
fontFamily: AppFonts.interBold,
|
|
1539
|
-
fontSize: 10,
|
|
1540
|
-
color: AppColors.white,
|
|
1541
|
-
},
|
|
1542
|
-
svgGraphContainer: {
|
|
1543
|
-
width: '100%',
|
|
1544
|
-
height: 64,
|
|
1545
|
-
marginTop: 6,
|
|
1546
|
-
position: 'relative',
|
|
1547
|
-
overflow: 'hidden',
|
|
1548
|
-
borderRadius: 8,
|
|
1549
|
-
},
|
|
1550
|
-
svgTouchOverlay: {
|
|
1551
|
-
position: 'absolute',
|
|
1552
|
-
top: 0,
|
|
1553
|
-
left: 0,
|
|
1554
|
-
right: 0,
|
|
1555
|
-
bottom: 0,
|
|
1556
|
-
flexDirection: 'row',
|
|
1557
|
-
},
|
|
1558
|
-
svgTouchCol: {
|
|
1559
|
-
flex: 1,
|
|
1560
|
-
height: '100%',
|
|
1561
|
-
},
|
|
1562
|
-
histogramContainer: {
|
|
1563
|
-
gap: 8,
|
|
1564
|
-
marginTop: 4,
|
|
1565
|
-
},
|
|
1566
|
-
histogramRow: {
|
|
1567
|
-
flexDirection: 'row',
|
|
1568
|
-
alignItems: 'center',
|
|
1569
|
-
gap: 8,
|
|
1570
|
-
},
|
|
1571
|
-
histogramLabelCol: {
|
|
1572
|
-
flexDirection: 'row',
|
|
1573
|
-
alignItems: 'center',
|
|
1574
|
-
gap: 6,
|
|
1575
|
-
width: 140,
|
|
1576
|
-
},
|
|
1577
|
-
histogramLabelText: {
|
|
1578
|
-
fontFamily: AppFonts.interMedium,
|
|
1579
|
-
fontSize: 10,
|
|
1580
|
-
color: AppColors.grayTextStrong,
|
|
1581
|
-
},
|
|
1582
|
-
histogramBarCol: {
|
|
1583
|
-
flex: 1,
|
|
1584
|
-
},
|
|
1585
|
-
histogramTrack: {
|
|
1586
|
-
height: 8,
|
|
1587
|
-
backgroundColor: AppColors.grayBackground,
|
|
1588
|
-
borderRadius: 4,
|
|
1589
|
-
overflow: 'hidden',
|
|
1590
|
-
},
|
|
1591
|
-
histogramBarFill: {
|
|
1592
|
-
height: '100%',
|
|
1593
|
-
borderRadius: 4,
|
|
1594
|
-
},
|
|
1595
|
-
histogramStatsCol: {
|
|
1596
|
-
flexDirection: 'row',
|
|
1597
|
-
alignItems: 'center',
|
|
1598
|
-
gap: 4,
|
|
1599
|
-
minWidth: 52,
|
|
1600
|
-
justifyContent: 'flex-end',
|
|
1601
|
-
},
|
|
1602
|
-
histogramPercentText: {
|
|
1603
|
-
fontFamily: AppFonts.interBold,
|
|
1604
|
-
fontSize: 10.5,
|
|
1605
|
-
},
|
|
1606
|
-
histogramCountText: {
|
|
1607
|
-
fontFamily: AppFonts.interRegular,
|
|
1608
|
-
fontSize: 9.5,
|
|
1609
|
-
color: AppColors.grayTextWeak,
|
|
1610
|
-
},
|
|
1611
|
-
sparklineFooter: {
|
|
1612
|
-
flexDirection: 'row',
|
|
1613
|
-
alignItems: 'center',
|
|
1614
|
-
justifyContent: 'space-between',
|
|
1615
|
-
marginTop: 6,
|
|
1616
|
-
},
|
|
1617
|
-
sparklineFooterText: {
|
|
1618
|
-
fontFamily: AppFonts.interRegular,
|
|
1619
|
-
fontSize: 10,
|
|
1620
|
-
color: AppColors.grayTextWeak,
|
|
1621
|
-
},
|
|
1622
|
-
sparklineFooterTarget: {
|
|
1623
|
-
fontFamily: AppFonts.interMedium,
|
|
1624
|
-
fontSize: 10,
|
|
1625
|
-
color: AppColors.emerald600,
|
|
1626
|
-
},
|
|
1627
|
-
budgetCard: {
|
|
1628
|
-
backgroundColor: AppColors.white,
|
|
1629
|
-
borderRadius: 12,
|
|
1630
|
-
padding: 12,
|
|
1631
|
-
borderWidth: 1,
|
|
1632
|
-
borderColor: AppColors.dividerColor,
|
|
1633
|
-
gap: 8,
|
|
1634
|
-
},
|
|
1635
|
-
budgetHeader: {
|
|
1636
|
-
flexDirection: 'row',
|
|
1637
|
-
alignItems: 'center',
|
|
1638
|
-
justifyContent: 'space-between',
|
|
1639
|
-
},
|
|
1640
|
-
budgetTitle: {
|
|
1641
|
-
fontFamily: AppFonts.interBold,
|
|
1642
|
-
fontSize: 12.5,
|
|
1643
|
-
color: AppColors.primaryBlack,
|
|
1644
|
-
},
|
|
1645
|
-
budgetHeadroom: {
|
|
1646
|
-
fontFamily: AppFonts.interBold,
|
|
1647
|
-
fontSize: 11,
|
|
1648
|
-
color: AppColors.emerald600,
|
|
1649
|
-
},
|
|
1650
|
-
budgetBarContainer: {
|
|
1651
|
-
flexDirection: 'row',
|
|
1652
|
-
height: 8,
|
|
1653
|
-
borderRadius: 4,
|
|
1654
|
-
overflow: 'hidden',
|
|
1655
|
-
backgroundColor: AppColors.grayBackground,
|
|
1656
|
-
gap: 2,
|
|
1657
|
-
},
|
|
1658
|
-
budgetBarSegment: {
|
|
1659
|
-
height: '100%',
|
|
1660
|
-
borderRadius: 2,
|
|
1661
|
-
},
|
|
1662
|
-
budgetLegendGrid: {
|
|
1663
|
-
flexDirection: 'row',
|
|
1664
|
-
flexWrap: 'wrap',
|
|
1665
|
-
gap: 10,
|
|
1666
|
-
marginTop: 2,
|
|
1667
|
-
},
|
|
1668
|
-
legendItem: {
|
|
1669
|
-
flexDirection: 'row',
|
|
1670
|
-
alignItems: 'center',
|
|
1671
|
-
gap: 4,
|
|
1672
|
-
},
|
|
1673
|
-
legendDot: {
|
|
1674
|
-
width: 6,
|
|
1675
|
-
height: 6,
|
|
1676
|
-
borderRadius: 3,
|
|
1677
|
-
},
|
|
1678
|
-
legendText: {
|
|
1679
|
-
fontFamily: AppFonts.interRegular,
|
|
1680
|
-
fontSize: 10,
|
|
1681
|
-
color: AppColors.grayTextStrong,
|
|
1682
|
-
},
|
|
1683
|
-
engineSummaryGrid: {
|
|
1684
|
-
flexDirection: 'row',
|
|
1685
|
-
alignItems: 'center',
|
|
1686
|
-
gap: 8,
|
|
1687
|
-
},
|
|
1688
|
-
engineSummaryCard: {
|
|
1689
|
-
flex: 1,
|
|
1690
|
-
backgroundColor: AppColors.white,
|
|
1691
|
-
borderRadius: 10,
|
|
1692
|
-
padding: 10,
|
|
1693
|
-
borderWidth: 1,
|
|
1694
|
-
borderColor: AppColors.dividerColor,
|
|
1695
|
-
},
|
|
1696
|
-
engineSummaryLabel: {
|
|
1697
|
-
fontFamily: AppFonts.interMedium,
|
|
1698
|
-
fontSize: 10,
|
|
1699
|
-
color: AppColors.grayTextWeak,
|
|
1700
|
-
},
|
|
1701
|
-
engineSummaryValue: {
|
|
1702
|
-
fontFamily: AppFonts.interBold,
|
|
1703
|
-
fontSize: 11.5,
|
|
1704
|
-
color: AppColors.primaryBlack,
|
|
1705
|
-
marginTop: 2,
|
|
1706
|
-
},
|
|
1707
|
-
engineSummarySub: {
|
|
1708
|
-
fontFamily: AppFonts.interRegular,
|
|
1709
|
-
fontSize: 9.5,
|
|
1710
|
-
color: AppColors.grayTextWeak,
|
|
1711
|
-
marginTop: 1,
|
|
1712
|
-
},
|
|
1713
|
-
logsHeaderRow: {
|
|
1714
|
-
flexDirection: 'row',
|
|
1715
|
-
alignItems: 'center',
|
|
1716
|
-
justifyContent: 'space-between',
|
|
1717
|
-
marginTop: 4,
|
|
1718
|
-
},
|
|
1719
|
-
logsSectionHeading: {
|
|
1720
|
-
fontFamily: AppFonts.interBold,
|
|
1721
|
-
fontSize: 13,
|
|
1722
|
-
color: AppColors.primaryBlack,
|
|
1723
|
-
},
|
|
1724
|
-
clearLink: {
|
|
1725
|
-
fontFamily: AppFonts.interBold,
|
|
1726
|
-
fontSize: 11.5,
|
|
1727
|
-
color: AppColors.purple,
|
|
1728
|
-
},
|
|
1729
|
-
eventCard: {
|
|
1730
|
-
backgroundColor: AppColors.white,
|
|
1731
|
-
borderRadius: 10,
|
|
1732
|
-
padding: 10,
|
|
1733
|
-
borderWidth: 1,
|
|
1734
|
-
borderColor: AppColors.dividerColor,
|
|
1735
|
-
gap: 6,
|
|
1736
|
-
},
|
|
1737
|
-
eventTopRow: {
|
|
1738
|
-
flexDirection: 'row',
|
|
1739
|
-
alignItems: 'center',
|
|
1740
|
-
justifyContent: 'space-between',
|
|
1741
|
-
},
|
|
1742
|
-
fpsBadgeGroup: {
|
|
1743
|
-
flexDirection: 'row',
|
|
1744
|
-
alignItems: 'center',
|
|
1745
|
-
gap: 6,
|
|
1746
|
-
flexWrap: 'wrap',
|
|
1747
|
-
},
|
|
1748
|
-
fpsBadge: {
|
|
1749
|
-
paddingHorizontal: 6,
|
|
1750
|
-
paddingVertical: 2,
|
|
1751
|
-
borderRadius: 5,
|
|
1752
|
-
borderWidth: 1,
|
|
1753
|
-
},
|
|
1754
|
-
fpsBadgeText: {
|
|
1755
|
-
fontFamily: AppFonts.interBold,
|
|
1756
|
-
fontSize: 10,
|
|
1757
|
-
},
|
|
1758
|
-
droppedBadge: {
|
|
1759
|
-
paddingHorizontal: 6,
|
|
1760
|
-
paddingVertical: 2,
|
|
1761
|
-
borderRadius: 5,
|
|
1762
|
-
borderWidth: 1,
|
|
1763
|
-
},
|
|
1764
|
-
droppedBadgeWarning: {
|
|
1765
|
-
backgroundColor: AppColors.red100,
|
|
1766
|
-
borderColor: AppColors.errorBorder,
|
|
1767
|
-
},
|
|
1768
|
-
droppedBadgeOptimal: {
|
|
1769
|
-
backgroundColor: AppColors.green100,
|
|
1770
|
-
borderColor: AppColors.greenBorder,
|
|
1771
|
-
},
|
|
1772
|
-
droppedBadgeText: {
|
|
1773
|
-
fontFamily: AppFonts.interBold,
|
|
1774
|
-
fontSize: 9.5,
|
|
1775
|
-
},
|
|
1776
|
-
bottleneckTag: {
|
|
1777
|
-
backgroundColor: AppColors.purpleShade50,
|
|
1778
|
-
paddingHorizontal: 5,
|
|
1779
|
-
paddingVertical: 2,
|
|
1780
|
-
borderRadius: 4,
|
|
1781
|
-
borderWidth: 1,
|
|
1782
|
-
borderColor: AppColors.purpleTint2,
|
|
1783
|
-
},
|
|
1784
|
-
bottleneckTagText: {
|
|
1785
|
-
fontFamily: AppFonts.interMedium,
|
|
1786
|
-
fontSize: 9.5,
|
|
1787
|
-
color: AppColors.purple,
|
|
1788
|
-
},
|
|
1789
|
-
eventMetaRow: {
|
|
1790
|
-
flexDirection: 'row',
|
|
1791
|
-
alignItems: 'center',
|
|
1792
|
-
gap: 6,
|
|
1793
|
-
marginTop: 2,
|
|
1794
|
-
flexWrap: 'wrap',
|
|
1795
|
-
},
|
|
1796
|
-
eventMetaDot: {
|
|
1797
|
-
fontSize: 9,
|
|
1798
|
-
color: AppColors.grayTextWeak,
|
|
1799
|
-
},
|
|
1800
|
-
frameBudgetHint: {
|
|
1801
|
-
fontFamily: AppFonts.interMedium,
|
|
1802
|
-
fontSize: 10,
|
|
1803
|
-
},
|
|
1804
|
-
frameBarTrack: {
|
|
1805
|
-
height: 4,
|
|
1806
|
-
borderRadius: 2,
|
|
1807
|
-
backgroundColor: AppColors.graySurface,
|
|
1808
|
-
overflow: 'hidden',
|
|
1809
|
-
marginVertical: 4,
|
|
1810
|
-
},
|
|
1811
|
-
frameBarFill: {
|
|
1812
|
-
height: '100%',
|
|
1813
|
-
borderRadius: 2,
|
|
1814
|
-
},
|
|
1815
|
-
fpsMetricsGrid: {
|
|
1816
|
-
flexDirection: 'row',
|
|
1817
|
-
alignItems: 'center',
|
|
1818
|
-
backgroundColor: AppColors.white,
|
|
1819
|
-
borderRadius: 6,
|
|
1820
|
-
padding: 6,
|
|
1821
|
-
borderWidth: 1,
|
|
1822
|
-
borderColor: AppColors.dividerColor,
|
|
1823
|
-
justifyContent: 'space-between',
|
|
1824
|
-
gap: 4,
|
|
1825
|
-
},
|
|
1826
|
-
fpsMetricItem: {
|
|
1827
|
-
alignItems: 'center',
|
|
1828
|
-
flex: 1,
|
|
1829
|
-
},
|
|
1830
|
-
fpsMetricLabel: {
|
|
1831
|
-
fontFamily: AppFonts.interRegular,
|
|
1832
|
-
fontSize: 8.5,
|
|
1833
|
-
color: AppColors.grayTextWeak,
|
|
1834
|
-
textAlign: 'center',
|
|
1835
|
-
},
|
|
1836
|
-
fpsMetricVal: {
|
|
1837
|
-
fontFamily: AppFonts.interBold,
|
|
1838
|
-
fontSize: 10.5,
|
|
1839
|
-
color: AppColors.primaryBlack,
|
|
1840
|
-
marginTop: 1,
|
|
1841
|
-
textAlign: 'center',
|
|
1842
|
-
},
|
|
1843
|
-
eventLabel: {
|
|
1844
|
-
fontFamily: AppFonts.interBold,
|
|
1845
|
-
fontSize: 12,
|
|
1846
|
-
color: AppColors.primaryBlack,
|
|
1847
|
-
},
|
|
1848
|
-
eventMeta: {
|
|
1849
|
-
fontFamily: AppFonts.interRegular,
|
|
1850
|
-
fontSize: 10,
|
|
1851
|
-
color: AppColors.grayTextWeak,
|
|
1852
|
-
marginTop: 1,
|
|
1853
|
-
},
|
|
1854
|
-
eventDetail: {
|
|
1855
|
-
fontFamily: AppFonts.interRegular,
|
|
1856
|
-
fontSize: 11,
|
|
1857
|
-
color: AppColors.grayTextStrong,
|
|
1858
|
-
lineHeight: 15,
|
|
1859
|
-
},
|
|
1860
|
-
expandChevron: {
|
|
1861
|
-
fontSize: 10,
|
|
1862
|
-
color: AppColors.grayTextWeak,
|
|
1863
|
-
marginLeft: 2,
|
|
1864
|
-
},
|
|
1865
|
-
expandedDetailBox: {
|
|
1866
|
-
backgroundColor: AppColors.grayBackground,
|
|
1867
|
-
borderRadius: 8,
|
|
1868
|
-
padding: 8,
|
|
1869
|
-
marginTop: 4,
|
|
1870
|
-
gap: 6,
|
|
1871
|
-
borderWidth: 1,
|
|
1872
|
-
borderColor: AppColors.dividerColor,
|
|
1873
|
-
},
|
|
1874
|
-
sourceRow: {
|
|
1875
|
-
flexDirection: 'row',
|
|
1876
|
-
alignItems: 'center',
|
|
1877
|
-
gap: 6,
|
|
1878
|
-
},
|
|
1879
|
-
sourceTag: {
|
|
1880
|
-
fontFamily: AppFonts.interBold,
|
|
1881
|
-
fontSize: 8.5,
|
|
1882
|
-
color: AppColors.purple,
|
|
1883
|
-
backgroundColor: `${AppColors.purple}14`,
|
|
1884
|
-
paddingHorizontal: 4,
|
|
1885
|
-
paddingVertical: 1,
|
|
1886
|
-
borderRadius: 3,
|
|
1887
|
-
},
|
|
1888
|
-
sourceText: {
|
|
1889
|
-
fontFamily: AppFonts.interMedium,
|
|
1890
|
-
fontSize: 10.5,
|
|
1891
|
-
color: AppColors.grayTextStrong,
|
|
1892
|
-
flex: 1,
|
|
1893
|
-
},
|
|
1894
|
-
breakdownGrid: {
|
|
1895
|
-
flexDirection: 'row',
|
|
1896
|
-
alignItems: 'center',
|
|
1897
|
-
backgroundColor: AppColors.white,
|
|
1898
|
-
borderRadius: 6,
|
|
1899
|
-
padding: 6,
|
|
1900
|
-
borderWidth: 1,
|
|
1901
|
-
borderColor: AppColors.dividerColor,
|
|
1902
|
-
justifyContent: 'space-between',
|
|
1903
|
-
},
|
|
1904
|
-
breakdownCol: {
|
|
1905
|
-
alignItems: 'center',
|
|
1906
|
-
flex: 1,
|
|
1907
|
-
},
|
|
1908
|
-
breakdownLabel: {
|
|
1909
|
-
fontFamily: AppFonts.interRegular,
|
|
1910
|
-
fontSize: 9,
|
|
1911
|
-
color: AppColors.grayTextWeak,
|
|
1912
|
-
},
|
|
1913
|
-
breakdownVal: {
|
|
1914
|
-
fontFamily: AppFonts.interBold,
|
|
1915
|
-
fontSize: 11,
|
|
1916
|
-
color: AppColors.primaryBlack,
|
|
1917
|
-
marginTop: 1,
|
|
1918
|
-
},
|
|
1919
|
-
adviceCard: {
|
|
1920
|
-
backgroundColor: AppColors.purpleTintBg,
|
|
1921
|
-
borderRadius: 6,
|
|
1922
|
-
padding: 6,
|
|
1923
|
-
borderWidth: 1,
|
|
1924
|
-
borderColor: AppColors.purpleBorder,
|
|
1925
|
-
},
|
|
1926
|
-
adviceHeading: {
|
|
1927
|
-
fontFamily: AppFonts.interBold,
|
|
1928
|
-
fontSize: 10,
|
|
1929
|
-
color: AppColors.purpleShade700,
|
|
1930
|
-
},
|
|
1931
|
-
adviceBodyText: {
|
|
1932
|
-
fontFamily: AppFonts.interRegular,
|
|
1933
|
-
fontSize: 10.5,
|
|
1934
|
-
color: AppColors.purple,
|
|
1935
|
-
lineHeight: 14,
|
|
1936
|
-
marginTop: 1,
|
|
1937
|
-
},
|
|
1938
|
-
searchHighlight: {
|
|
1939
|
-
backgroundColor: AppColors.yellowHighlight,
|
|
1940
|
-
color: AppColors.amber800,
|
|
1941
|
-
fontFamily: AppFonts.interBold,
|
|
1942
|
-
},
|
|
1943
|
-
emptyCard: {
|
|
1944
|
-
backgroundColor: AppColors.white,
|
|
1945
|
-
borderRadius: 12,
|
|
1946
|
-
padding: 24,
|
|
1947
|
-
alignItems: 'center',
|
|
1948
|
-
justifyContent: 'center',
|
|
1949
|
-
gap: 8,
|
|
1950
|
-
borderWidth: 1,
|
|
1951
|
-
borderColor: AppColors.dividerColor,
|
|
1952
|
-
},
|
|
1953
|
-
emptyTitle: {
|
|
1954
|
-
fontFamily: AppFonts.interBold,
|
|
1955
|
-
fontSize: 14,
|
|
1956
|
-
color: AppColors.primaryBlack,
|
|
1957
|
-
},
|
|
1958
|
-
emptySub: {
|
|
1959
|
-
fontFamily: AppFonts.interRegular,
|
|
1960
|
-
fontSize: 11.5,
|
|
1961
|
-
color: AppColors.grayTextWeak,
|
|
1962
|
-
textAlign: 'center',
|
|
1963
|
-
lineHeight: 16,
|
|
1964
|
-
},
|
|
1965
|
-
});
|
|
1966
|
-
|
|
1967
|
-
export default PerformanceTab;
|