diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-03-10 22:50:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-10 22:50:48 +0900 |
commit | 236223d02aa61d8f9011c7484c4e8827d336ecb6 (patch) | |
tree | 2e4ac0c8581a942332447a041b28dd5fa608e283 /src/Navigation.tsx | |
parent | e74c46e9ab480959c4416f83a78289e460bdeec7 (diff) | |
parent | 1aaed1cc0d59ecafa1bb3c7f57f0a323940e6317 (diff) | |
download | voidsky-236223d02aa61d8f9011c7484c4e8827d336ecb6.tar.zst |
Merge branch 'bluesky-social:main' into patch-3
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index b30f8f982..8a9f69b5d 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -78,6 +78,7 @@ import {createNativeStackNavigatorWithAuth} from './view/shell/createNativeStack import {msg} from '@lingui/macro' import {i18n, MessageDescriptor} from '@lingui/core' import HashtagScreen from '#/screens/Hashtag' +import {logEvent} from './lib/statsig/statsig' const navigationRef = createNavigationContainerRef<AllNavigatorParams>() @@ -649,11 +650,14 @@ function logModuleInitTime() { return } didInit = true + const initMs = Math.round( // @ts-ignore Emitted by Metro in the bundle prelude performance.now() - global.__BUNDLE_START_TIME__, ) console.log(`Time to first paint: ${initMs} ms`) + logEvent('init', initMs) + if (__DEV__) { // This log is noisy, so keep false committed const shouldLog = false |