Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ivberg opened this issue Sep 21, 2023 · 2 comments
Open

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

ivberg opened this issue Sep 21, 2023 · 2 comments

Comments

@ivberg
Copy link

ivberg commented Sep 21, 2023

  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.

@LalitMaganti
Copy link
Collaborator

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.

@ivberg
Copy link
Author

ivberg commented Sep 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants