[firebase_performance] How to collect "Slow rendering" and "Frozen frames" timings for individual screens? #8126
Unanswered
DeepakSinghRawat
asked this question in
Q&A
Replies: 1 comment
-
@DeepakSinghRawat have you had a go at this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
According to the Firebase Performance Usage documentation
I want to collect these metrics on my own but not sure how to collect frames timings data for each screen.
I thought of using the addTimingsCallback
But I am not sure how to get the
FrameTiming
for a particular screen from this API.I am thinking of logging the metrics to Firebase using the following approach:
RouteObserver
to listen for any route changes just like theFirebaseAnalyticsObserver
app start
or if any time aroute change
is detected, start Firebase performance trace and calculateSlow rendering
andFrozen frames
metrics according to Measuring Load time and Screen Rendering with Firebase PerformanceaddPostFrameCallback
stop the trace and log the metrics to FirebasePlease let me know how to collect "Slow rendering" and "Frozen frames" timings for individual screens. Also what's the correct way to detect a screen change so these metrics can be logged to Firebase?
Beta Was this translation helpful? Give feedback.
All reactions