Perfetto doesn't expose metadata from F12 Dev Tools .json file
- Capture a F12 Dev Tools trace with a Chromium browser and save - https://developer.chrome.com/docs/devtools/performance/reference/
- Open saved .json file and see metadata
"metadata": {
"source": "DevTools",
"startTime": "2023-09-21T21:04:15.706Z",
"cpuThrottling": 1,
"networkThrottling": "No throttling",
"hardwareConcurrency": 12
}
- Open the .json in http://ui.perfetto.dev
- 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.
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.
Thanks @LalitMaganti for explaining. We expected this response. Just documenting this issue for others and understand we would have to contribute to fix it.