about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-10-30 19:18:34 -0700
committerPaul Frazee <pfrazee@gmail.com>2023-10-30 19:18:34 -0700
commit97ce9a73d2ce0c088dbf3e95d1e3bc3d20aa410d (patch)
tree9ca599fd953ad45810156be1f85e3ad4b7dd183b
parent33ea9ccef70147c6827e3a2820a4c75bfc9abd89 (diff)
parentef1d6ee490f7c74f9154d929d72efb0830f8da7d (diff)
downloadvoidsky-97ce9a73d2ce0c088dbf3e95d1e3bc3d20aa410d.tar.zst
Merge branch 'main' of github.com:bluesky-social/social-app into main
-rw-r--r--src/Navigation.tsx6
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()