Trace file


I executed a test on webpage test with the DevToolsTimeline enabled.
I was able to get the trace.json file for my run. In there, I can see an attribute “ts” which, as per my understanding, is the time in microsecond when the trace was captured.

My question is, is the trace sorted chronologically by the “ts” value? I can see the same “ts” being available at multiple lines which gives me a feeling that the file is not sorted by default.

Please let me know.


No, the trace events are stored in the order that they are emitted from Chrome and not sorted explicitly. Any tools that do processing against the trace events would be well-served to sort themselves first and then process ( and dev tools both do this).