Skip to content

Conversation

@bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Jul 4, 2025

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

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
@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jul 4, 2025

/// 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?
Copy link
Contributor Author

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.

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!

@bkonyi bkonyi requested a review from jyameo July 4, 2025 17:30
Copy link
Contributor

@jyameo jyameo left a 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!

@bkonyi bkonyi added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 4, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 4, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented Jul 4, 2025

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.

@bkonyi bkonyi added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 4, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented Jul 4, 2025

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.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 4, 2025
@bkonyi bkonyi added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 4, 2025
@auto-submit auto-submit bot added this pull request to the merge queue Jul 4, 2025
Merged via the queue into master with commit 3becc31 Jul 4, 2025
146 checks passed
@auto-submit auto-submit bot deleted the widget_preview_analytics branch July 4, 2025 21:05
@flutter-dashboard flutter-dashboard bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 4, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 5, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 5, 2025
Bempong-Sylvester-Obese

This comment was marked as off-topic.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 7, 2025
mboetger pushed a commit to mboetger/flutter that referenced this pull request Jul 21, 2025
…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
azatech pushed a commit to azatech/flutter that referenced this pull request Jul 28, 2025
…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
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 15, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 15, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 16, 2025
lucaantonelli pushed a commit to lucaantonelli/flutter that referenced this pull request Nov 21, 2025
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for reporting analytics related to interactions with widget previews

4 participants