perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

Perfetto doesn't expose metadata from F12 Dev Tools .json file

Open ivberg opened this issue 2 years ago • 2 comments

  1. Capture a F12 Dev Tools trace with a Chromium browser and save - https://developer.chrome.com/docs/devtools/performance/reference/
  2. Open saved .json file and see metadata
"metadata": {
  "source": "DevTools",
  "startTime": "2023-09-21T21:04:15.706Z",
  "cpuThrottling": 1,
  "networkThrottling": "No throttling",
  "hardwareConcurrency": 12
}
  1. Open the .json in http://ui.perfetto.dev
  2. The metadata including trace startTime will not be available in the data anywhere including select * from metadata

This prevents correlating a trace with other diagnostics or data using an absolute time, even though the data is present in the source trace.

ivberg avatar Sep 21 '23 21:09 ivberg

From our perspective, this is WAI. Our policy for the JSON trace format is defined in https://perfetto.dev/docs/faq#why-does-perfetto-not-support-lt-some-obscure-json-format-feature-gt- and we've never bothered to implement this because it was not critical to get Chrome JSON traces loaded in the Perfetto UI.

We'd happily accept contributions for this but this is not something we will get to ourselves.

LalitMaganti avatar Sep 21 '23 21:09 LalitMaganti

Thanks @LalitMaganti for explaining. We expected this response. Just documenting this issue for others and understand we would have to contribute to fix it.

ivberg avatar Sep 21 '23 21:09 ivberg