-
Notifications
You must be signed in to change notification settings - Fork 29.8k
[ Widget Previews ] Add analytics for flutter widget-preview start
#171641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tracks the following metrics: - Overall launch time with/without generating the widget preview scaffold - Time from detecting a file change within the tracked project to actually loading the updated previews into the previewer Fixes #166418
|
|
||
| /// Send an analytics event reporting how long it took for a widget preview to be reloaded. | ||
| void reportPreviewReloadTiming() { | ||
| // TODO(bkonyi): only report when files are actually reloaded? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anderdobo, what do you think about this? Right now, we'll always report a preview reload timing event, even if the result is no files were hot reloaded into the preview environment (e.g., only whitespace was changed).
Even if a change results in no libraries being reloaded into the preview environment, we still need to do analysis and scan the updated file for changes to the previews defined within the file. That means there is still work being done that will also block processing of further changes to other files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM given the context. Thanks!
jyameo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for adding detailed metrics tracking!
|
autosubmit label was removed for flutter/flutter/171641, because - The status or check suite Linux build_tests_3_5 has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
autosubmit label was removed for flutter/flutter/171641, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…lutter#171641) Tracks the following metrics: - Overall launch time with/without generating the widget preview scaffold - Time from detecting a file change within the tracked project to actually loading the updated previews into the previewer Fixes flutter#166418
…lutter#171641) Tracks the following metrics: - Overall launch time with/without generating the widget preview scaffold - Time from detecting a file change within the tracked project to actually loading the updated previews into the previewer Fixes flutter#166418
…lutter#171641) Tracks the following metrics: - Overall launch time with/without generating the widget preview scaffold - Time from detecting a file change within the tracked project to actually loading the updated previews into the previewer Fixes flutter#166418
Tracks the following metrics:
Fixes #166418