)]}'
{
  "commit": "d555faf8009b522cd863a9bce116dc8182f5669c",
  "tree": "bb694d6733994b586a6f6a8e6b72eacd61c689db",
  "parents": [
    "ef1103b6d839d924cdc382efd5a74b9f6e23258c"
  ],
  "author": {
    "name": "Burak Karahan",
    "email": "burak.karahan@mail.ru",
    "time": "Thu Oct 29 23:54:19 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Oct 29 23:54:19 2026 +0000"
  },
  "message": "[web] Record end-to-end presentation duration in benchmarks (#188628)\n\nRelated: #187660. Part 1 of 5 from the original hybrid-rasterizer\nchange. This PR is now limited to the independent benchmark\ninstrumentation.\n\nAdds `presentation_duration` around preparation and frame submission,\nincluding asynchronous raster work, and records it in the web benchmark\nharness. The timer stops before reporting, and benchmark listeners are\ncleaned up even when startup fails. The existing profile JSON schema is\nunchanged.\n\nVerified locally: two engine timing tests cover enabled/disabled\nprofiling and delayed preparation/rasterization; a browser regression\ntest covers listener cleanup after synchronous startup failures. Static\nanalysis and formatting pass. This change is independent of the hybrid\nrasterizer.\n\nThe remaining pieces are separate drafts:\n\n- #195103: native callback IDs and optional bitmap capture.\n- #195104: platform-view DOM commit after rasterization.\n- #195105: opt-in hybrid presentation, depending on the two changes\nabove.\n- #195106: desktop default policy and benchmark results, depending on\nthe opt-in implementation.\n\nThe duplicate semaphore and codec changes were dropped on rebase because\nmaster already includes #194139 and #193187.\n\n## Pre-launch Checklist\n\n- [ ] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [ ] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [ ] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [ ] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [ ] I signed the [CLA].\n- [ ] I listed at least one issue that this PR fixes in the description\nabove.\n- [ ] I updated/added relevant in-code documentation (doc comments with\n`///`).\n- [ ] If this PR introduces a new feature or capability, I created and\nlinked a website documentation issue or PR in [flutter/website] (or\nverified none is needed).\n- [ ] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [ ] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [ ] All existing and new tests are passing.\n\nIf you need help, consider asking for advice on the #hackers-new channel\non [Discord].\n\nIf this change needs to override an active code freeze, provide a\ncomment explaining why. The code freeze workflow can be overridden by\ncode reviewers. See pinned issues for any active code freezes with\nguidance.\n\n**Note**: The Flutter team is currently trialing the use of [Gemini Code\nAssist for\nGitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).\nComments from the `gemini-code-assist` bot should not be taken as\nauthoritative feedback from the Flutter team. If you find its comments\nuseful you can update your code accordingly, but if you are unsure or\ndisagree with the feedback, please feel free to wait for a Flutter team\nmember\u0027s review for guidance on which automated comments should be\naddressed.\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/CONTRIBUTING.ai.md\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[flutter/website]: https://github.com/flutter/website\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": "93a284594f6abf3d7df6092c6adcca9a0eab6b0d",
      "old_mode": 33188,
      "old_path": "dev/benchmarks/macrobenchmarks/lib/src/web/recorder.dart",
      "new_id": "39596d8f5665ce41244ab1a3cd5bc7eb33135ceb",
      "new_mode": 33188,
      "new_path": "dev/benchmarks/macrobenchmarks/lib/src/web/recorder.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "13873f6f281609d4fb5e0175aba7be4426912c4b",
      "new_mode": 33188,
      "new_path": "dev/benchmarks/macrobenchmarks/test/web/widget_recorder_test.dart"
    },
    {
      "type": "modify",
      "old_id": "d428329e978f0d1cb9cb4028f8f8418902e8d4dc",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/lib/web_ui/lib/src/engine/compositing/rasterizer.dart",
      "new_id": "116d834f042f26e1a2deb1ba995c4188c2bcb7ea",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/lib/web_ui/lib/src/engine/compositing/rasterizer.dart"
    },
    {
      "type": "modify",
      "old_id": "6331b22c757c7a30414bb5829860b5b7f218192c",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/lib/web_ui/lib/src/engine/initialization.dart",
      "new_id": "ddc6eb29e553a07f89b5aa8b885faf3552670d12",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/lib/web_ui/lib/src/engine/initialization.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ba06cdadccf26e28f0703723c75d2d48553b0ddd",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/lib/web_ui/test/engine/compositing/presentation_timing_test.dart"
    }
  ]
}
