Timeline json data format?

1,894 views
Skip to first unread message

jason....@gmail.com

unread,
Apr 17, 2013, 3:58:06 PM4/17/13
to google-chrome-...@googlegroups.com
Does anyone know if the json format for saved Timeline data is documented anywhere?  Or at the very least their schema?

I have an application I'm writing that loads webpages in a custom embedded webkit browser.  What I'm looking to do is save profiling data from these pages via my application and then later load them into Google Chrome Developer Tools Timeline tab via it's "Load Timeline Data" functionality for observation.  I have something already working using Google Code's Speed Tracer, and it's defined json data format.  It seems the formats are pretty similar (actually, I *think* Speed Tracer is Timelines predecessor), but I really need the full data format.  I would continue on using Speed Tracer, but I got the impression from one of it's past developers that it's not actively being worked on any more (as Dev Tools seems to have the same functionality and more).

Any help would be awesome!

Andrey Kosyakov

unread,
Apr 18, 2013, 9:16:09 AM4/18/13
to jason....@gmail.com, Google Chrome Developer Tools
Hi Jason,

The high-level format of the timeline records is documented as part of the DevTools remote protocol (https://developers.google.com/chrome-developer-tools/docs/protocol/1.0/timeline). The details of the data record, though, are not currently documented, so the best source of information for you would be the source code (in particular, look for TimelinePresentationModel.js in the front-end and TimelineRecordFactory.cpp in the back-end). The fact that speed tracer format matches that of Timeline is not a coincidence, as SpeedTracer used DevTools as the back-end.
Please keep in mind that the format evolves and we do not make any promises on whether it will remain compatible (although we do our best to keep the front-end backward-compatible so that users can load records from older versions of DevTools into the modern ones).
I wonder if producing data using InspectorTimelineAgent is an options within your custom version of webkit? If so, this would take care of data representation.

Best regards,
Andrey.


--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jason Dolan

unread,
Apr 18, 2013, 10:48:40 AM4/18/13
to Andrey Kosyakov, Google Chrome Developer Tools
Hi Andrey,

Thanks for all the info. I'll look at the source to see what I can glean from that.  My application is a Qt based and uses a very slightly modified QtWebkit based browser that is embedded in the application.  I really don't know if InspectorTimelineAgent is exposed to me to use or is even available in the version of QtWebkit I'm using (I'm currently developing using Qt 4.8.3).  I'll skim the QtWebkit source for signs of InspectorTimelineAgent.

Thanks again for all your help!

-Jason
Reply all
Reply to author
Forward
0 new messages