Saving Chrome trace reports as HTML files (instead of JSON)

794 views
Skip to first unread message

Carlos Knippschild

unread,
Oct 24, 2016, 7:26:11 PM10/24/16
to Chromium-dev
I found out this was possible when I found a document linking to one. The great thing about this is that it eases referring to one from an embedded link: click on it and Chrome opens the trace report directly. It's much better than the JSON workflow: download the file, open new tab, type chrome://tracing, click on "Load", find the saved report, open the file.

Any clues on how to do that?

Oystein Eftevaag

unread,
Oct 24, 2016, 7:38:07 PM10/24/16
to car...@chromium.org, Chromium-dev
Catapult has a trace2html script that'll do this for you.

On Mon, Oct 24, 2016 at 4:25 PM Carlos Knippschild <car...@chromium.org> wrote:
I found out this was possible when I found a document linking to one. The great thing about this is that it eases referring to one from an embedded link: click on it and Chrome opens the trace report directly. It's much better than the JSON workflow: download the file, open new tab, type chrome://tracing, click on "Load", find the saved report, open the file.

Any clues on how to do that?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Carlos Knippschild

unread,
Oct 25, 2016, 6:54:50 PM10/25/16
to Oystein Eftevaag, car...@chromium.org, Chromium-dev
Thanks. I updated the tracing how-to page to link to that script (mentioning this here to make sure external linking is allowed).

Oystein Eftevaag

unread,
Oct 25, 2016, 7:53:52 PM10/25/16
to Carlos Knippschild, Chromium-dev
Great, thank you! Yeah linking to Catapult should be fine.

林澔澔

unread,
Oct 26, 2016, 7:32:51 AM10/26/16
to Chromium-dev


carlosk於 2016年10月25日星期二 UTC+8上午7時26分11秒寫道:

Bruce

unread,
Oct 26, 2016, 1:18:25 PM10/26/16
to Chromium-dev, car...@chromium.org
That's excellent. I have been wanting that exact capability. As a concrete example, I often generate tracing files from ninja build logs using ninjatracing and the ability to convert from .json to .html makes the workflow smoother. Here's an example run on Windows:

> python c:\src\ninjatracing\ninjatracing out\release\.ninja_log >build_trace.json
> python third_party\catapult\tracing\bin\trace2html build_trace.json
build_trace.html
> build_trace.html
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages