diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-10-30 19:18:34 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-10-30 19:18:34 -0700 |
commit | 97ce9a73d2ce0c088dbf3e95d1e3bc3d20aa410d (patch) | |
tree | 9ca599fd953ad45810156be1f85e3ad4b7dd183b /src | |
parent | 33ea9ccef70147c6827e3a2820a4c75bfc9abd89 (diff) | |
parent | ef1d6ee490f7c74f9154d929d72efb0830f8da7d (diff) | |
download | voidsky-97ce9a73d2ce0c088dbf3e95d1e3bc3d20aa410d.tar.zst |
Merge branch 'main' of github.com:bluesky-social/social-app into main
Diffstat (limited to 'src')
-rw-r--r-- | src/Navigation.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 52235ad75..a75651987 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -467,6 +467,12 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) { theme={theme} onReady={() => { SplashScreen.hideAsync() + 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`) + // Register the navigation container with the Sentry instrumentation (only works on native) if (isNative) { const routingInstrumentation = getRoutingInstrumentation() |