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

Issue 2333133002: Fix cpu_tracing_agent's output on Mac (Closed)

Created:
4 years, 3 months ago by nednguyen
Modified:
4 years, 2 months ago
Reviewers:
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Fix cpu_tracing_agent's output on Mac BUG=catapult:#

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -5 lines) Patch
M telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent.py View 5 chunks +23 lines, -5 lines 2 comments Download

Messages

Total messages: 1 (0 generated)
nednguyen
4 years, 3 months ago (2016-09-13 12:46:22 UTC) #1
https://codereview.chromium.org/2333133002/diff/1/telemetry/telemetry/interna...
File telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent.py
(right):

https://codereview.chromium.org/2333133002/diff/1/telemetry/telemetry/interna...
telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent.py:142:
'-o', 'pid %cpu %mem command']
The trick is to rearrange the output columns so that command is the last. With
that, we can parse the 1st, 2nd & 3rd column as pid, cpu, mem & leave the rest
to command

https://codereview.chromium.org/2333133002/diff/1/telemetry/telemetry/interna...
telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent.py:157:
'command': cmd
full command is more useful than name

Powered by Google App Engine
This is Rietveld 408576698