)]}'
{
  "commit": "c848e4bc22bf2b6036f8e7d7936615b54e0841f6",
  "tree": "2af86bb380580e8022a699f649c3a8c266645115",
  "parents": [
    "986e7af0006a29180a0598971fdfc265099a7c09"
  ],
  "author": {
    "name": "Safayat Ullah",
    "email": "safayat@google.com",
    "time": "Wed Nov 25 15:30:23 2026 +0000"
  },
  "committer": {
    "name": "Safayat Ullah",
    "email": "safayat@google.com",
    "time": "Wed Nov 25 15:30:23 2026 +0000"
  },
  "message": "base: add WaitUntilTimeInitialized() for Windows thread CPU time tests\n\nOn Windows x86/x64, GetThreadCPUTimeNs() returns 0 until\nTSCTicksPerSecond() finishes its 50 ms calibration window. Because\nperfetto_unittests does not call InitializeTime() at startup,\nFarFutureDelayedTaskDoesNotSpin (#8759) failed on Chromium win-asan:\ncpu_start was 0, and after the 200 ms sleep the second call returned\nthe thread\u0027s total CPU time from earlier tests (~3.2 s vs 100 ms).\n\nAdd base::WaitUntilTimeInitialized() to wait until calibration\ncompletes on Windows x86/x64, and call it in\nFarFutureDelayedTaskDoesNotSpin and TimeTest.GetTime. It is a no-op\nonce calibrated and on all other platforms.\n\nThis keeps GetThreadCPUTimeNs() non-blocking on hot tracing paths while\nhiding Windows calibration details from tests, similar to Chromium\u0027s\nThreadTicks::WaitUntilInitialized().\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3e4a276265e5f38b1af6fbaf7911224bde287ff7",
      "old_mode": 33188,
      "old_path": "include/perfetto/base/time.h",
      "new_id": "47fb80a0276a5c9e5d8b6831ebbd12d5486772fd",
      "new_mode": 33188,
      "new_path": "include/perfetto/base/time.h"
    },
    {
      "type": "modify",
      "old_id": "8fa843dad050fad0c552c96b418038f05c3420f0",
      "old_mode": 33188,
      "old_path": "src/base/task_runner_unittest.cc",
      "new_id": "c94394a243ae49c1b0dd9549ea25125b68d287f1",
      "new_mode": 33188,
      "new_path": "src/base/task_runner_unittest.cc"
    },
    {
      "type": "modify",
      "old_id": "fbd9a231351446ab8218bba0047b5945980a36c2",
      "old_mode": 33188,
      "old_path": "src/base/time.cc",
      "new_id": "a6e8191b926ff080c9ce4b510a4af2b1fb6dd016",
      "new_mode": 33188,
      "new_path": "src/base/time.cc"
    },
    {
      "type": "modify",
      "old_id": "a5b9d78273cb5f9bdc7961304578bd000e2178aa",
      "old_mode": 33188,
      "old_path": "src/base/time_unittest.cc",
      "new_id": "08b59cf5609e6998f397bec7c454901e5607bdc1",
      "new_mode": 33188,
      "new_path": "src/base/time_unittest.cc"
    }
  ]
}
