)]}'
{
  "commit": "8ef341eead6c35b2ab2ec4ace8a6824afb614999",
  "tree": "85db84f3779378196eb291240d61f2b3c3adeb62",
  "parents": [
    "e47df5db8eee12e05b4f89a3acf773af9e0f8a95"
  ],
  "author": {
    "name": "Steve Golton",
    "email": "stevegolton@google.com",
    "time": "Wed May 07 20:28:05 2025 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed May 07 12:28:05 2025 -0700"
  },
  "message": "Fix crash in heap profile auto-selection at trace load time (#1435)\n\nhttps://buganizer.corp.google.com/issues/416190258\n\nWhen loading a trace with heap profile tracks, we automatically select\nthe earliest heap profile sample on trace load.\n    \nWe currently assume that this event has id \u003d 0, but this is not\nnecessarily the case.\n    \nThis change refactors the queries in the heap profile plugin to make\nthings a lot clearer, as it was getting out of control, and also fixes\nthe bug so that it works out the necessary event id properly.\n    \nThis change also refactors the selection logic in SelectionManager a\nlittle to make the error message clearer and to ease debugging in the\nfuture.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "22176aa9028062f953aa15446c63142707f6e069",
      "old_mode": 33188,
      "old_path": "ui/src/core/selection_manager.ts",
      "new_id": "524bdab97bd24dd66a1d67050852cf8df236fbdd",
      "new_mode": 33188,
      "new_path": "ui/src/core/selection_manager.ts"
    },
    {
      "type": "modify",
      "old_id": "7adb9102f3ec7efcb42c034782105c26b6160bd4",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.HeapProfile/heap_profile_track.ts",
      "new_id": "a7d495cf7e597ab57702cdf930e421a00e1e336a",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.HeapProfile/heap_profile_track.ts"
    },
    {
      "type": "modify",
      "old_id": "55479adeb2dd44a45d99c581f04a53d9d268a5db",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.HeapProfile/index.ts",
      "new_id": "a245ad75e9ff8cbd0eeae0526fcc665860bf5610",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.HeapProfile/index.ts"
    }
  ]
}
