)]}'
{
  "commit": "9c71f8b6deaff435bd91f50f92b9c63b61a3da71",
  "tree": "66107de26663043ee066edcc77c71fb9156506ce",
  "parents": [
    "453cb46937ae7bb16640082ef02f4c5f521211e6"
  ],
  "author": {
    "name": "Ben Konyi",
    "email": "bkonyi@google.com",
    "time": "Tue Sep 01 18:10:56 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Sep 01 18:10:56 2026 +0000"
  },
  "message": "[flutter_tools] Report preview reload timing analytics in LspPreviewDetector (#192120)\n\nIn Flutter 3.44\n([#184473](https://github.com/flutter/flutter/pull/184473)),\n`LspPreviewDetector` became the default preview detector, but did not\ninstrument `previewAnalytics.startPreviewReloadStopwatch()` or\n`previewAnalytics.reportPreviewReloadTiming()`. This caused a severe\ndrop in reported `preview-reload-time` telemetry events.\n\nThis change instruments `LspPreviewDetector` to start the reload\nstopwatch on file changes, report reload timings after change detection\ncompletes, and reset the stopwatch on errors. Non-Dart file edits are\nalso filtered out to avoid unnecessary reload events.\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [ ] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant documentation (doc comments with `///`).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bf5b1b596e0fddc47064e253cc4fc0a91fc5df57",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/widget_preview/lsp_preview_detector.dart",
      "new_id": "85c9944589c9468062410d82c383f778055a5d74",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/widget_preview/lsp_preview_detector.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d44768cdf1670f683f88a6ad77a05bcc50e2adc9",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/commands.shard/hermetic/widget_preview/lsp_preview_detector_test.dart"
    }
  ]
}
