)]}'
{
  "commit": "7a8e2deff58c224e2984c56470c05e945681b42c",
  "tree": "62a7557ebf971ef022f2e6a0d01f1734e923849e",
  "parents": [
    "72cba8d0a743ced2b29eab873279da9290258f91"
  ],
  "author": {
    "name": "Lalit Maganti",
    "email": "lalitmaganti@gmail.com",
    "time": "Wed Apr 29 12:43:54 2026 +0100"
  },
  "committer": {
    "name": "Lalit Maganti",
    "email": "lalitmaganti@gmail.com",
    "time": "Wed Apr 29 12:43:54 2026 +0100"
  },
  "message": "perfetto: fix bogus chunks_overwritten in TraceBufferV2\n\nDeleteNextChunksFor() unconditionally bumped chunks_overwritten /\nbytes_overwritten for any non-padding chunk it walked, while data_loss\nwas correctly gated on has_cleared_unconsumed_fragments. The two should\nmove together: a chunk that the reader already drained (payload_avail\n\u003d\u003d 0) but hadn\u0027t yet \"stepped past\" via the follow-up\nReadNextTracePacket() call is still non-padding, and clearing it on a\nsubsequent wrap is not a real overwrite.\n\nMove the stat increments inside the same gate as data_loss so they\nonly fire when there were actually unread fragments at clear time.\nThis matches v1 (trace_buffer_v1.cc only counts when num_fragments_read\n\u003c num_fragments).\n\nAlso adds NoOverwriteCountIfReaderCatchesUp, which mirrors the\nexisting NoDataLossIfReaderCatchesUp pattern but asserts on the stats\nthe latter never checked.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5a38c6ff45d6201cc5ef3a7e492f5af64134426d",
      "old_mode": 33188,
      "old_path": "src/tracing/service/trace_buffer_v2.cc",
      "new_id": "a8399e0d389091d7e00faba4b74f0678d689a7dc",
      "new_mode": 33188,
      "new_path": "src/tracing/service/trace_buffer_v2.cc"
    },
    {
      "type": "modify",
      "old_id": "e74bb5a67bdac74d7fd921cc123eeec2b849b08a",
      "old_mode": 33188,
      "old_path": "src/tracing/service/trace_buffer_v2_unittest.cc",
      "new_id": "6e673316dcdda166d362ed132cc6dab3d61648c3",
      "new_mode": 33188,
      "new_path": "src/tracing/service/trace_buffer_v2_unittest.cc"
    }
  ]
}
