)]}'
{
  "commit": "61a2b6e503a207f114de50fa7ac920e4c16fac41",
  "tree": "9367d970d86a674dff240f6350cc215fe8d6e316",
  "parents": [
    "006f56bfc9535b1ff9c8b2af3e3e2398a6da9cc7"
  ],
  "author": {
    "name": "Ryan Zuklie",
    "email": "rzuklie@google.com",
    "time": "Wed Nov 04 16:31:06 2026 +0000"
  },
  "committer": {
    "name": "Ryan Zuklie",
    "email": "rzuklie@google.com",
    "time": "Fri Nov 06 14:41:07 2026 +0000"
  },
  "message": "perfetto: Add persistent state tracks\n\nState tracks only emit an event when their state changes, so a state\nthat never changes during a trace (or whose last change was overwritten\nin a ring buffer) is missing or incomplete.\n\nPerfettoTePersistentStateTrack is a state track whose current state\n(value, args and the time it started) is owned by Perfetto, even when\ntracing is not active:\n* PERFETTO_TE_PERSISTENT_STATE() records the new state and, where the\n  category is enabled, emits both the previous state (with the\n  timestamp it started at) and the new one. The previous state is\n  written when it ends, so it survives ring buffer wraparound for as\n  long as possible.\n* When a track_event instance starts, stops or is cloned, the current\n  state of every track is emitted on that instance.\n\nAll the emitted events are regular TYPE_STATE events, timestamped at\nthe start of their state: no trace format or trace processor changes.\nThe state is stored as TrackEvent fields serialized without interning,\nso that it can be emitted on any sequence.\n\nSetting a state doesn\u0027t take any lock: a state is only accessed by\nwhoever atomically exchanged it out of its track (snapshots take it out\nwhile emitting it). Snapshots and track registration share a mutex.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d66aa592294bce6b5343dad7e973f12d948da2ec",
      "old_mode": 33188,
      "old_path": "Android.bp",
      "new_id": "12353d844fb364e49b1bad7a7c951b1ec64a8ecb",
      "new_mode": 33188,
      "new_path": "Android.bp"
    },
    {
      "type": "modify",
      "old_id": "0819649386e52c5b408dc4ca55a57a897e3ac3ef",
      "old_mode": 33188,
      "old_path": "BUILD",
      "new_id": "f3667130df5fbd18d68ad22ea905c1437321266a",
      "new_mode": 33188,
      "new_path": "BUILD"
    },
    {
      "type": "modify",
      "old_id": "5f84d6953661ccda6d2cbfaf7846eb6993408009",
      "old_mode": 33188,
      "old_path": "CHANGELOG",
      "new_id": "fc17f1d9b9d7ad02e904a2306d0ffa6f6d842a35",
      "new_mode": 33188,
      "new_path": "CHANGELOG"
    },
    {
      "type": "modify",
      "old_id": "2a350570bb699998532e66cd4c38d20f51d89d79",
      "old_mode": 33188,
      "old_path": "include/perfetto/public/abi/track_event_abi.h",
      "new_id": "d9184de3ad7040b0acc8dfa1df7f6f72da6764d2",
      "new_mode": 33188,
      "new_path": "include/perfetto/public/abi/track_event_abi.h"
    },
    {
      "type": "modify",
      "old_id": "9d53c8b693a9aa918b831d85167c8287476c8271",
      "old_mode": 33188,
      "old_path": "include/perfetto/public/abi/track_event_hl_abi.h",
      "new_id": "8e7996a3a84e837731df6e212f061e2974c276a2",
      "new_mode": 33188,
      "new_path": "include/perfetto/public/abi/track_event_hl_abi.h"
    },
    {
      "type": "modify",
      "old_id": "f70e5ab8b6dd4f4cdd697d4442299738e36281f4",
      "old_mode": 33188,
      "old_path": "include/perfetto/public/te_macros.h",
      "new_id": "4c8f3b954568d923f2092a6850ff19c5212f8508",
      "new_mode": 33188,
      "new_path": "include/perfetto/public/te_macros.h"
    },
    {
      "type": "modify",
      "old_id": "0344c3242ad7fe3b603eb365673d60164ea9f859",
      "old_mode": 33188,
      "old_path": "include/perfetto/public/track_event.h",
      "new_id": "1d686caf4bfb5ce8d7955feee3927103612dd19d",
      "new_mode": 33188,
      "new_path": "include/perfetto/public/track_event.h"
    },
    {
      "type": "modify",
      "old_id": "439804c742300a329154c5c3c49712215c1979f9",
      "old_mode": 33188,
      "old_path": "src/shared_lib/test/api_integrationtest.cc",
      "new_id": "492868525a4a55168d04d6ac0ce1d7658b42b381",
      "new_mode": 33188,
      "new_path": "src/shared_lib/test/api_integrationtest.cc"
    },
    {
      "type": "modify",
      "old_id": "cd6ee2150c396c2a110666cb19e563dc82f89fed",
      "old_mode": 33188,
      "old_path": "src/shared_lib/track_event/BUILD.gn",
      "new_id": "bc06af4a9356187ade2869939a083eac655fa62e",
      "new_mode": 33188,
      "new_path": "src/shared_lib/track_event/BUILD.gn"
    },
    {
      "type": "modify",
      "old_id": "1c5d67c95efe9920ab2906f5096776d43a8ed53b",
      "old_mode": 33188,
      "old_path": "src/shared_lib/track_event/ds.cc",
      "new_id": "6b7424495179e89e16a5ee073116d52a7e61b600",
      "new_mode": 33188,
      "new_path": "src/shared_lib/track_event/ds.cc"
    },
    {
      "type": "modify",
      "old_id": "e0b07a992ffdace41aac872c9ec8d6537e66f466",
      "old_mode": 33188,
      "old_path": "src/shared_lib/track_event/ds.h",
      "new_id": "a45fb9b71fdb4431aae783fda2fe15b668d87805",
      "new_mode": 33188,
      "new_path": "src/shared_lib/track_event/ds.h"
    },
    {
      "type": "modify",
      "old_id": "aca87c9eafe244eff7b9fdd50c519085255d26f4",
      "old_mode": 33188,
      "old_path": "src/shared_lib/track_event/hl.cc",
      "new_id": "e29a9cbf9df94901e2cf4c0b3311a56c631246bd",
      "new_mode": 33188,
      "new_path": "src/shared_lib/track_event/hl.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0e5dbffbf13dfaaf0c981322ad7d9a7159f5c909",
      "new_mode": 33188,
      "new_path": "src/shared_lib/track_event/hl.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "565d2db2788c54d59611e6b226ce5327a7e1c1e8",
      "new_mode": 33188,
      "new_path": "src/shared_lib/track_event/persistent_state.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b9e061512f3dba5a522234170aa5ee719f1c4e9c",
      "new_mode": 33188,
      "new_path": "src/shared_lib/track_event/persistent_state.h"
    }
  ]
}
