[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
FrameTimingfor a particular screen from this API.I am thinking of logging the metrics to Firebase using the following approach:
RouteObserverto listen for any route changes just like theFirebaseAnalyticsObserverapp startor if any time aroute changeis detected, start Firebase performance trace and calculateSlow renderingandFrozen framesmetrics according to Measuring Load time and Screen Rendering with Firebase PerformanceaddPostFrameCallbackstop 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