Greetings,
I recently ran across the trace viewer in Chrome and I am very excited about it. Having used RAD Game Tools' Telemetry viewer in the past, I find this form of profiling to be extraordinarily useful. However, I am having some difficulties in figuring out the formats to make things viewable in Chrome.
I have read through
https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview# . When I generate events in those formats, nothing shows up in Chrome. I also note that it is from 2013. Often I get an error message about "Failed to find main browser thread, some features may not be available." I have also tried recording a trace in Chrome and working backwards from that. The problem there is a short 1-2s trace generates 10's of thousands of events, which is too much data to sort. Even some of the unit tests do not appear in Chrome's viewer.
I have noticed that certain "name" tags tend to show up in the trace viewer. Currently I am using "Parse HTML" and then putting my function names inside that to see my traces. Functional but not great. I have been unable to get process wide events to appear, such as frame delimiters.
So, my questions are:
Is there a way to make Chrome view these elements that are not appearing? Is there some setting or plug-in I'm missing?
Is there current documentation on the JSON Chrome is looking for, so that I can generate these events?
Are there smaller examples of data that generates a trace in Chrome, that I could work off of? Ideally it would be complex enough to have multiple threads, asynch events, frame delimiters, etc. Stack traces are not terribly important as I can parse that out from the viewer.
Thank you,
--Brad Hallisey
Here is the minimum set of data that shows a graph in Chrome.
[
{"pid":12444,"tid":11392,"ts":0,"ph":"M","cat":"__metadata","name":"thread_name","args":{"name":"CrRendererMain"}},
{"pid":12444,"tid":4016,"ts":425679545954,"ph":"B","cat":"devtools.timeline","name":"ParseHTML","args":{"beginData": { "url":"Hello Very Long Name" }}},
{"pid":12444,"tid":4016,"ts":425679546543,"ph":"B","cat":"devtools.timeline","name":"ParseHTML","args":{"beginData": { "url":"Short Name" }}},
{"pid":12444,"tid":4016,"ts":425679646654,"ph":"E","cat":"devtools.timeline","name":"ParseHTML","args":{"endData":{"endLine":-1}}},
{"pid":12444,"tid":4016,"ts":425689646011,"ph":"E","cat":"devtools.timeline","name":"ParseHTML","args":{"endData":{"endLine":-1}}},
{"pid":12444,"tid":4076,"ts":0,"ph":"M","cat":"__metadata","name":"thread_name","args":{"name":"CrBrowserMain"}},
]