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

Issue 2031883002: Initiate the script that takes a snapshot of CPU usage (Closed)

Created:
4 years, 6 months ago by Ziqi Xiong
Modified:
4 years, 5 months ago
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@master
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Go to issue 2066413002 for latest updates BUG=

Patch Set 1 #

Patch Set 2 : Add minor style changes #

Patch Set 3 : Enable the script to run on Windows #

Patch Set 4 : Insert code that takes a snapshot before each test run #

Patch Set 5 : Insert code that takes a snapshot before each test run #

Total comments: 6

Patch Set 6 : Minor styling changes #

Patch Set 7 : Update expectations #

Patch Set 8 : null #

Patch Set 9 : change expectation #

Total comments: 6

Patch Set 10 : Fix styling inconsistency and bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -2 lines) Patch
M scripts/slave/recipe_modules/auto_bisect/bisector.py View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/local_bisect.py View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/recipe_modules/auto_bisect/resources/cpu_usage.py View 1 2 3 4 5 6 7 8 9 1 chunk +79 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/revision_state.py View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -2 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/basic.json View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/basic_return_code_test.json View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/broken_bad_revision_test.json View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/broken_good_revision_test.json View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Ziqi Xiong
First attempt.
4 years, 6 months ago (2016-06-01 23:50:43 UTC) #2
RobertoCN
This approach looks good. I made some styling suggestions to the code. https://codereview.chromium.org/2031883002/diff/80001/scripts/slave/recipe_modules/auto_bisect/bisector.py File scripts/slave/recipe_modules/auto_bisect/bisector.py ...
4 years, 6 months ago (2016-06-03 18:01:43 UTC) #4
RobertoCN
Some more comments. If you have addressed previous comments, reply to them to mark them ...
4 years, 6 months ago (2016-06-07 21:44:29 UTC) #6
prasadv
https://codereview.chromium.org/2031883002/diff/160001/scripts/slave/recipe_modules/auto_bisect/bisector.py File scripts/slave/recipe_modules/auto_bisect/bisector.py (right): https://codereview.chromium.org/2031883002/diff/160001/scripts/slave/recipe_modules/auto_bisect/bisector.py#newcode669 scripts/slave/recipe_modules/auto_bisect/bisector.py:669: def print_result_debug_info_with_cpu_snapshot(self): can we rename this method name shorter? ...
4 years, 6 months ago (2016-06-07 22:00:49 UTC) #7
prasadv
https://codereview.chromium.org/2031883002/diff/160001/scripts/slave/recipe_modules/auto_bisect/resources/cpu_usage.py File scripts/slave/recipe_modules/auto_bisect/resources/cpu_usage.py (right): https://codereview.chromium.org/2031883002/diff/160001/scripts/slave/recipe_modules/auto_bisect/resources/cpu_usage.py#newcode23 scripts/slave/recipe_modules/auto_bisect/resources/cpu_usage.py:23: """Parses a line from top output According to python ...
4 years, 6 months ago (2016-06-07 22:05:22 UTC) #8
sullivan
4 years, 6 months ago (2016-06-07 22:15:34 UTC) #10
There were some comments from Ned and Nat on the design doc on putting this into
telemetry as a lightweight tracing agent. I think that is a really good idea
because
1) We can get the data anywhere telemetry is run, from perfbots to bisect, to
locally
2) I think that should also be able to integrate with the telemetry code to
automatically upload traces to cloud storage, so that they could easily be
linked and shared.
Let's discuss at the automation & monitoring meeting tomorrow.

Also, please link the design doc in the CL description:
https://docs.google.com/document/d/1fYKiJn270MY-1Wz1cPbrKHGwlDuo2vDauWRPb50z3...

Powered by Google App Engine
This is Rietveld 408576698