)]}'
{
  "commit": "a4ff4fb84994d9f317026307e921a5b8870ece08",
  "tree": "87109476954246e03d5d4e24bfa1811baca72416",
  "parents": [
    "92572214800ba8cc2e3dcb53d332fa882c0a90a6"
  ],
  "author": {
    "name": "Safayat Ullah",
    "email": "safayat@google.com",
    "time": "Tue Jul 07 19:16:57 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jul 07 18:16:57 2026 +0000"
  },
  "message": "ui/tp: Fix empty Linux perf flamegraph counter options (#6573)\n\nperfetto: Fix empty Linux perf flamegraph counter options\nPrevent empty counter metric options (like \"cpu-clock\" for software\nclock\nsources) from showing in the perf flamegraph dropdown when no counter\nvalues exist in the trace.\n\n- tp: Verify if the optional `timebase_count` field is present in the\n  protobuf perf_sample packet before calling `PushCounter`. This stops\n  writing dummy `0.0` counter entries to the database for software clock\n  sources.\n- ui: Update the pre-fetch query in `cacheCounterTypesPerSession` to\n  exclude counter tracks that do not have at least one non-zero counter\n  entry using a `WHERE EXISTS` check.\n- test: Added `test_perf_sample_timebase_count` diff test to assert that\n  sample packets with count fields populate counters, while packets\n  without do not.\n\nFixes: #6552",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5a55649773d021004edf50ff1ce58fd89e7eeeaa",
      "old_mode": 33188,
      "old_path": "src/trace_processor/importers/proto/profile_module.cc",
      "new_id": "4012c153d5d4573cc4ea54f414fbf1bf3dec72ec",
      "new_mode": 33188,
      "new_path": "src/trace_processor/importers/proto/profile_module.cc"
    },
    {
      "type": "modify",
      "old_id": "410bfb616f8969c13eb50218613905420a60fecd",
      "old_mode": 33188,
      "old_path": "test/trace_processor/diff_tests/parser/profiling/tests.py",
      "new_id": "cd46664587a3eef0a0674229b806a430bd6179cd",
      "new_mode": 33188,
      "new_path": "test/trace_processor/diff_tests/parser/profiling/tests.py"
    },
    {
      "type": "modify",
      "old_id": "d1cea043f57dd7726f840c6b0dbd9c5c798b2d66",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.LinuxPerf/index.ts",
      "new_id": "6ee0fad2a3e842eb4b72644a146e2cf8bdd8e1f6",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.LinuxPerf/index.ts"
    }
  ]
}
