)]}'
{
  "commit": "38ab40a54a75c11fa88e4651efe8cb7d273257ec",
  "tree": "704b798b9038305be80ee82cad02b7ff5d4706b5",
  "parents": [
    "1cbab3dc4c8cc0a35b0fde45e52c0d1607554d74"
  ],
  "author": {
    "name": "Arpit Khatri",
    "email": "arpitkhatri@google.com",
    "time": "Sun Oct 04 22:44:16 2026 +0000"
  },
  "committer": {
    "name": "Arpit Khatri",
    "email": "arpitkhatri@google.com",
    "time": "Tue Oct 06 01:34:53 2026 +0000"
  },
  "message": "tp: share machine-scoped hardware tracks across merged traces\n\nFollow-up to the discussion on #6991.\n\nTrackTracker is per trace, so when several traces from one machine are\nmerged, each trace interns its own copy of every hardware track: two\ncpu_frequency tracks per CPU, two gpu_frequency tracks, and so on.\nHardware counters describe the device that recorded them, so all traces\nof a machine should write to one track for each of them. This is the\nbase that lets Trace Processor drop the duplicate data; it does not drop\nanything itself and should not land on its own.\n\n- Blueprints get a Scope: kTrace (default, one track per trace) or\n  kMachine (one track per machine). MachineCounterBlueprint() is\n  CounterBlueprint() with kMachine.\n- New machine_track_tracker: a TrackTracker shared by all traces on a\n  machine (PerMachinePtr). TrackTracker::InternTrack forwards kMachine\n  blueprints to it. It must not read per-trace state from its context.\n- Rule for kMachine: a counter that describes the device and whose\n  dimensions are only device identifiers. Marked: cpu_frequency,\n  cpu_max_frequency_limit, cpu_min_frequency_limit, cpu_idle,\n  gpu_frequency, entity_state, battery_counter. power_rails stays per\n  trace: its dimensions include the session uuid, so separately\n  recorded traces would not share it. CPU-per-UID tracks (per UID and\n  totals) stay per trace: their values count from each trace\u0027s start\n  and the module writes per-trace rows to android_cpu_per_uid_track.\n- Compressed slice tracks stay per trace.\n- Adds a zip diff test: two traces of one machine give one cpu_frequency\n  track per CPU with both traces\u0027 samples.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f12c843c6033d009823a92d37f83cd58d12cd426",
      "old_mode": 33188,
      "old_path": "src/trace_processor/importers/common/track_compressor.h",
      "new_id": "450702fd0f10b4453c2f39c2c8725d7fc5c734a5",
      "new_mode": 33188,
      "new_path": "src/trace_processor/importers/common/track_compressor.h"
    },
    {
      "type": "modify",
      "old_id": "a17d16fcdb39042afc49cefcbc476cd2b9cc17bc",
      "old_mode": 33188,
      "old_path": "src/trace_processor/importers/common/track_tracker.h",
      "new_id": "e458a13184424619ab2bee5cb9ac0420dde66317",
      "new_mode": 33188,
      "new_path": "src/trace_processor/importers/common/track_tracker.h"
    },
    {
      "type": "modify",
      "old_id": "5c969993f98858fe3ee7dca12e558fb8e7897bae",
      "old_mode": 33188,
      "old_path": "src/trace_processor/importers/common/tracks.h",
      "new_id": "d5fb606ede68d3484ec0a497acb1c1ae0a042d4e",
      "new_mode": 33188,
      "new_path": "src/trace_processor/importers/common/tracks.h"
    },
    {
      "type": "modify",
      "old_id": "20d8c20b8454bfe6746feb8d84f71e6c6e2cef38",
      "old_mode": 33188,
      "old_path": "src/trace_processor/importers/common/tracks_common.h",
      "new_id": "306cb75d2406bb5ce1ba8d62138109e010336988",
      "new_mode": 33188,
      "new_path": "src/trace_processor/importers/common/tracks_common.h"
    },
    {
      "type": "modify",
      "old_id": "57327cc30ed25973cb3da17c8376ba5662522f5d",
      "old_mode": 33188,
      "old_path": "src/trace_processor/importers/common/tracks_internal.h",
      "new_id": "d21ef47677e0fcbb21db35f02b4dbcbadaf71954",
      "new_mode": 33188,
      "new_path": "src/trace_processor/importers/common/tracks_internal.h"
    },
    {
      "type": "modify",
      "old_id": "5730811f1a149ade419166c26ce6b4d040fb7be8",
      "old_mode": 33188,
      "old_path": "src/trace_processor/importers/proto/android_probes_parser.cc",
      "new_id": "e05d173b3d6f470679d4037dc383b88aa40b26a7",
      "new_mode": 33188,
      "new_path": "src/trace_processor/importers/proto/android_probes_parser.cc"
    },
    {
      "type": "modify",
      "old_id": "847ead6a491521cf815b64c33d9d6ecacf5020f2",
      "old_mode": 33188,
      "old_path": "src/trace_processor/trace_processor_context.cc",
      "new_id": "9ebadf13f4268e14bb6537e97d1dbea78a3e6204",
      "new_mode": 33188,
      "new_path": "src/trace_processor/trace_processor_context.cc"
    },
    {
      "type": "modify",
      "old_id": "016938d5f6ff28962e1b50e2717c2c303c5ea1d9",
      "old_mode": 33188,
      "old_path": "src/trace_processor/types/trace_processor_context.h",
      "new_id": "5bc23528e8503d87cec1e4e63ede337e9cac7926",
      "new_mode": 33188,
      "new_path": "src/trace_processor/types/trace_processor_context.h"
    },
    {
      "type": "modify",
      "old_id": "2bfafbb5da5d7ac32add185756708c8e57ea5651",
      "old_mode": 33188,
      "old_path": "test/trace_processor/diff_tests/parser/zip/tests.py",
      "new_id": "3063c96d6657b62277f7d5cc6c4458e0d3a76cef",
      "new_mode": 33188,
      "new_path": "test/trace_processor/diff_tests/parser/zip/tests.py"
    }
  ]
}
