Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Issue 226933002: Convert 'perf script' output to about:tracing json. (Closed)

Created:
6 years, 8 months ago by ojan
Modified:
6 years, 8 months ago
Reviewers:
dsinclair, nduca, vmiura, eseidel
CC:
chromium-reviews
Visibility:
Public.

Description

Convert 'perf script' output to about:tracing json. This is a script creating json for importing into about:tracing from a run of the Linux perf command. I toyed with the idea of creating an intermediary json format for CPU profiles and then teaching about:tracing to understand that, but I decided it'd be better to keep things simple and not have about:tracing need to support a new trace format.

Patch Set 1 #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -0 lines) Patch
A tools/convert_perf_script_to_tracing_json.py View 1 chunk +172 lines, -0 lines 14 comments Download
A tools/convert_perf_script_to_tracing_json_test.py View 1 chunk +240 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ojan
6 years, 8 months ago (2014-04-04 23:58:36 UTC) #1
eseidel
This is a surpsing amount of code. :) https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py File tools/convert_perf_script_to_tracing_json.py (right): https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py#newcode16 tools/convert_perf_script_to_tracing_json.py:16: # ...
6 years, 8 months ago (2014-04-05 00:03:13 UTC) #2
eseidel
https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py File tools/convert_perf_script_to_tracing_json.py (right): https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py#newcode126 tools/convert_perf_script_to_tracing_json.py:126: trace_data.append({ Crazy. When I started down this path I ...
6 years, 8 months ago (2014-04-05 00:05:09 UTC) #3
ojan
https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py File tools/convert_perf_script_to_tracing_json.py (right): https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py#newcode16 tools/convert_perf_script_to_tracing_json.py:16: # samples instead of ms as the units. On ...
6 years, 8 months ago (2014-04-05 00:13:50 UTC) #4
dsinclair
If you wanted to take this a step further, trace-viewer has a trace2html script (and ...
6 years, 8 months ago (2014-04-08 02:28:35 UTC) #5
nduca
can you share an example input & output file for this? maybe via email or ...
6 years, 8 months ago (2014-04-08 06:30:46 UTC) #6
vmiura
https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py File tools/convert_perf_script_to_tracing_json.py (right): https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py#newcode16 tools/convert_perf_script_to_tracing_json.py:16: # samples instead of ms as the units. On ...
6 years, 8 months ago (2014-04-08 19:33:49 UTC) #7
ojan
https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py File tools/convert_perf_script_to_tracing_json.py (right): https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py#newcode126 tools/convert_perf_script_to_tracing_json.py:126: trace_data.append({ On 2014/04/08 02:28:36, dsinclair wrote: > On 2014/04/05 ...
6 years, 8 months ago (2014-04-08 19:38:40 UTC) #8
dsinclair
https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py File tools/convert_perf_script_to_tracing_json.py (right): https://codereview.chromium.org/226933002/diff/1/tools/convert_perf_script_to_tracing_json.py#newcode126 tools/convert_perf_script_to_tracing_json.py:126: trace_data.append({ On 2014/04/08 19:38:40, ojan wrote: > On 2014/04/08 ...
6 years, 8 months ago (2014-04-08 19:42:44 UTC) #9
ojan
6 years, 8 months ago (2014-04-08 19:43:08 UTC) #10
In either case, I'm going to close this. It sounds like Nat wants to integrate
sampling data more directly into traceviewer. While some bits of this python
code might still be needed for that, it won't look much like the current patch.

Powered by Google App Engine
This is Rietveld 408576698