New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 640215 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

CPU snapshots doesn't show chrome

Project Member Reported by nedngu...@google.com, Aug 23 2016

Issue description

Thanks to ziqi@'s work, we know have snap shots of cpu usages by processes in our trace.

However, I notice that none of those snapshots show Chrome as the top consumer. For example: https://console.developers.google.com/m/cloudstorage/b/chrome-telemetry-output/o/trace-file-id_0-2016-08-23_04-35-04-41475.html

(from https://chromeperf.appspot.com/report?sid=f7c2b4ecf59717c213266ce1183724ad81edb8d32717dd2847a7514fe962b612)

I worry that the cpu snapshotting mechanism has some problem with collecting data on the bot, and cannot be trusted yet. Hence we should still explain what's going on.

 
Project Member

Comment 1 by sheriffbot@chromium.org, Aug 24 2016

Labels: Hotlist-Google
Cc: aschulman@chromium.org
Cc: erikc...@chromium.org
I spent sometimes looking into this. I think this is a bug with how he parse the ps's commandline:
https://github.com/catapult-project/catapult/blob/0f569374f5240627e47aaf7cd8c66a692674e6b8/telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent.py#L55

Code:
token_list = line.strip().split()

a line here could looks s.t like:
  PID COMMAND           %CPU %MEM
22818 python            31.9  0.2
.....
22384 Google Chrome He   2.3  1.2  # <- bug!
With a hacky fix, I got some interesting insights on my Mac, e.g: web-page-replay server was taking a lot of CPU usage on my Mac.
 
Can someone take over this bug? 
Cc: charliea@chromium.org
Labels: -Pri-3 Pri-1
Owner: charliea@chromium.org
Charlie, since this is pretty critical for understanding how background processes impact our power metrics, can someone on your team take it? Ned, maybe you could post your hacky fix in a not-for-submission-cl to point folks in the right direction?
Here is my hacky fix for Mac https://codereview.chromium.org/2333133002/ 

Comment 8 Deleted

Comment 9 Deleted

Status: Assigned (was: Untriaged)
This is still on our radar, and will likely become more relevant now that the bots are (hopefully) running more stably.
Components: Speed>Tracing
Components: -Internals>Tracing
Status: Fixed (was: Assigned)
This is fixed - Chrome is now showing up.

Sign in to add a comment