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

Issue 1681283004: [tools] add --pretty switch to run_perf.py

Created:
4 years, 10 months ago by Camillo Bruni
Modified:
4 years, 6 months ago
Reviewers:
Michael Achenbach
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

reland [tools] add --pretty switch to run_perf.py This CL improves running our internal benchmarks locally by adding the --pretty option to tools/run_perf.py. With the flag enabled we print the run-time of each benchmark directly and avoid the json output at the end. NOTRY=true Committed: https://crrev.com/b543c40d78c3aa8283a7d9fccb6c9e26a9a81f90 Cr-Commit-Position: refs/heads/master@{#34023}

Patch Set 1 #

Patch Set 2 : fixing indent #

Patch Set 3 : better error handling #

Total comments: 6

Patch Set 4 : cleanup and addressing comments #

Total comments: 6

Patch Set 5 : more clean, less nit #

Total comments: 2

Patch Set 6 : using average and stdev only when printing #

Total comments: 1

Patch Set 7 : adding mock method #

Total comments: 1

Patch Set 8 : fix output concatenation on android #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -13 lines) Patch
M tools/run_perf.py View 1 2 3 4 5 6 7 12 chunks +112 lines, -13 lines 1 comment Download
M tools/unittests/run_perf_test.py View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (12 generated)
Camillo Bruni
PTAL. I hacked the run_perf.py script to be more useful when running locally.
4 years, 10 months ago (2016-02-10 19:26:35 UTC) #2
Michael Achenbach
Please keep the unittests passing: cd tools/unittests python -m unittest run_perf_test https://codereview.chromium.org/1681283004/diff/40001/tools/run_perf.py File tools/run_perf.py (right): ...
4 years, 10 months ago (2016-02-11 09:44:07 UTC) #3
Camillo Bruni
PTAL again. addressed nits and comemnts https://codereview.chromium.org/1681283004/diff/40001/tools/run_perf.py File tools/run_perf.py (right): https://codereview.chromium.org/1681283004/diff/40001/tools/run_perf.py#newcode221 tools/run_perf.py:221: return sum(float(x) for ...
4 years, 10 months ago (2016-02-11 10:22:57 UTC) #4
Michael Achenbach
https://codereview.chromium.org/1681283004/diff/60001/tools/run_perf.py File tools/run_perf.py (right): https://codereview.chromium.org/1681283004/diff/60001/tools/run_perf.py#newcode223 tools/run_perf.py:223: if self.stddev: This might deserve a small comment (sorry ...
4 years, 10 months ago (2016-02-11 13:01:11 UTC) #5
Camillo Bruni
cleaned up some more code and addressed those nits :) https://codereview.chromium.org/1681283004/diff/60001/tools/run_perf.py File tools/run_perf.py (right): https://codereview.chromium.org/1681283004/diff/60001/tools/run_perf.py#newcode225 ...
4 years, 10 months ago (2016-02-11 13:20:29 UTC) #6
Michael Achenbach
Looks good. But the tests still fail. Now there is the average field everywhere in ...
4 years, 10 months ago (2016-02-11 13:48:30 UTC) #7
Camillo Bruni
PTAL again ;) moved now all stddev / average calculation to the Mixin, that should ...
4 years, 10 months ago (2016-02-11 14:18:13 UTC) #8
Michael Achenbach
https://codereview.chromium.org/1681283004/diff/100001/tools/run_perf.py File tools/run_perf.py (right): https://codereview.chromium.org/1681283004/diff/100001/tools/run_perf.py#newcode1013 tools/run_perf.py:1013: platform.PrintResult(result) A tiny thing left to let the tests ...
4 years, 10 months ago (2016-02-11 14:50:42 UTC) #9
Camillo Bruni
PTAL, added MagicMock
4 years, 10 months ago (2016-02-12 13:47:16 UTC) #11
Michael Achenbach
lgtm
4 years, 10 months ago (2016-02-12 13:51:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681283004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681283004/120001
4 years, 10 months ago (2016-02-15 09:13:30 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-15 09:23:11 UTC) #16
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/83f69507ab1b9380b56758b747d4f3fabc849e49 Cr-Commit-Position: refs/heads/master@{#33981}
4 years, 10 months ago (2016-02-15 09:23:36 UTC) #18
Michael Achenbach
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1696293002/ by machenbach@chromium.org. ...
4 years, 10 months ago (2016-02-16 08:19:00 UTC) #19
Michael Achenbach
Please reland with the fix below. https://codereview.chromium.org/1681283004/diff/120001/tools/run_perf.py File tools/run_perf.py (right): https://codereview.chromium.org/1681283004/diff/120001/tools/run_perf.py#newcode847 tools/run_perf.py:847: print "\n".join(output.stdout) hmm, ...
4 years, 10 months ago (2016-02-16 09:05:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681283004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681283004/140001
4 years, 10 months ago (2016-02-16 09:18:05 UTC) #24
Michael Achenbach
lgtm
4 years, 10 months ago (2016-02-16 09:50:24 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681283004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681283004/140001
4 years, 10 months ago (2016-02-16 09:50:39 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-16 09:51:40 UTC) #29
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/b543c40d78c3aa8283a7d9fccb6c9e26a9a81f90 Cr-Commit-Position: refs/heads/master@{#34023}
4 years, 10 months ago (2016-02-16 09:51:58 UTC) #31
Michael Achenbach
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1700953002/ by machenbach@chromium.org. ...
4 years, 10 months ago (2016-02-16 12:56:04 UTC) #32
Michael Achenbach
https://codereview.chromium.org/1681283004/diff/140001/tools/run_perf.py File tools/run_perf.py (right): https://codereview.chromium.org/1681283004/diff/140001/tools/run_perf.py#newcode876 tools/run_perf.py:876: return stdout Meh. This needs to contain the stdout ...
4 years, 10 months ago (2016-02-16 13:01:49 UTC) #33
Michael Achenbach
4 years, 9 months ago (2016-03-04 15:49:52 UTC) #34
Message was sent while issue was closed.
Ping. I think the last state of this was reverted? Or did it reland?

Powered by Google App Engine
This is Rietveld 408576698