Devtools Profiles Json file data format?

4,235 views
Skip to first unread message

Kyle Luo

unread,
Feb 16, 2017, 7:45:12 AM2/16/17
to Google Chrome Developer Tools
Hi, all, Is there any document for the json format for saved Profile data? In the Profiles tab, I can load a pre-saved profile data, and load a json-formated data file. I want to generate profile datas myself and view it in the Profile page, how can I achieve this goal?

Any help would be great! Thanks in advance!

Josh Gavant

unread,
Feb 16, 2017, 5:29:26 PM2/16/17
to Google Chrome Developer Tools
I think it's the same as the Chrome Tracing Format: https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU

Alexei Filippov

unread,
Feb 16, 2017, 6:59:28 PM2/16/17
to Google Chrome Developer Tools
Are we talking about CPU profile format? Right?

It is JSON format based on the DevTools debugger protocol for Profiler domain. See 

P.S. It is not related to Chrome Tracing.

Patrick McFarlane

unread,
Mar 4, 2017, 10:43:26 AM3/4/17
to Google Chrome Developer Tools
For the CPU Profiles we have saved this is the closest thing I could find to a JSON format document. It contains references to things like timeDeltas, callFrame, positionTicks - https://chromium.googlesource.com/v8/v8/+/master/src/inspector/js_protocol.json

Patrick 
Reply all
Reply to author
Forward
0 new messages