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

Issue 83863002: Add JSON output option to bench. (Closed)

Created:
7 years, 1 month ago by jcgregorio
Modified:
7 years ago
Reviewers:
djsollen, bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add JSON output option to bench. A new command-line flag --outResultsFile takes the filename to write the JSON into. The human readable output is the same as before with one exception. Previously DEBUG would be printed if in debug mode, or nothing would be printed if in release mode. Now this is reported as a named option: build=DEBUG or build=RELEASE Committed: http://code.google.com/p/skia/source/detail?r=12465

Patch Set 1 #

Patch Set 2 : 80 chars #

Total comments: 12

Patch Set 3 : Added comments, removed endBench(). #

Total comments: 2

Patch Set 4 : Moved new classes to their own header. Added SkJSONCPP.h. #

Patch Set 5 : Added some more comments. #

Total comments: 4

Patch Set 6 : Add code for automatic cleanup. #

Patch Set 7 : Add auto-cleanup code. #

Patch Set 8 : auto cleanup #

Total comments: 2

Patch Set 9 : Drop writer.end() #

Patch Set 10 : Move CallEnd into ResultsWriter.h. #

Patch Set 11 : merge to head #

Patch Set 12 : %040s is not the same as %40s, at least on Mac. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -64 lines) Patch
A bench/ResultsWriter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +186 lines, -0 lines 1 comment Download
M bench/benchmain.cpp View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +37 lines, -42 lines 0 comments Download
M gm/gm_expectations.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -11 lines 0 comments Download
M gm/gmmain.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -11 lines 0 comments Download
M gyp/bench.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A include/utils/SkJSONCPP.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
jcgregorio
Review carefully, it's been a dog-year since I've written C++ :-) Also, I was on ...
7 years, 1 month ago (2013-11-22 19:08:35 UTC) #1
bsalomon
https://codereview.chromium.org/83863002/diff/10003/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/10003/bench/benchmain.cpp#newcode33 bench/benchmain.cpp:33: #ifdef SK_BUILD_FOR_WIN We have this same #ifdef stuff in ...
7 years, 1 month ago (2013-11-22 20:36:30 UTC) #2
jcgregorio
https://codereview.chromium.org/83863002/diff/10003/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/10003/bench/benchmain.cpp#newcode33 bench/benchmain.cpp:33: #ifdef SK_BUILD_FOR_WIN On 2013/11/22 20:36:30, bsalomon wrote: > We ...
7 years ago (2013-11-25 14:39:16 UTC) #3
bsalomon
https://codereview.chromium.org/83863002/diff/10003/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/10003/bench/benchmain.cpp#newcode33 bench/benchmain.cpp:33: #ifdef SK_BUILD_FOR_WIN On 2013/11/25 14:39:16, jcgregorio wrote: > On ...
7 years ago (2013-11-25 15:28:32 UTC) #4
djsollen
SkJSONCPP.h works for me https://codereview.chromium.org/83863002/diff/60001/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/60001/bench/benchmain.cpp#newcode70 bench/benchmain.cpp:70: // Base class for writing ...
7 years ago (2013-11-25 15:35:46 UTC) #5
jcgregorio
https://codereview.chromium.org/83863002/diff/10003/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/10003/bench/benchmain.cpp#newcode33 bench/benchmain.cpp:33: #ifdef SK_BUILD_FOR_WIN On 2013/11/25 15:28:33, bsalomon wrote: > On ...
7 years ago (2013-11-25 16:06:47 UTC) #6
djsollen
lgtm with 2 nits https://codereview.chromium.org/83863002/diff/100001/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/100001/bench/benchmain.cpp#newcode309 bench/benchmain.cpp:309: JSONResultsWriter* jsonWriter = NULL; use ...
7 years ago (2013-11-25 18:09:59 UTC) #7
jcgregorio
https://codereview.chromium.org/83863002/diff/100001/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/100001/bench/benchmain.cpp#newcode309 bench/benchmain.cpp:309: JSONResultsWriter* jsonWriter = NULL; On 2013/11/25 18:09:59, djsollen wrote: ...
7 years ago (2013-11-25 19:03:57 UTC) #8
djsollen
https://codereview.chromium.org/83863002/diff/150001/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/150001/bench/benchmain.cpp#newcode700 bench/benchmain.cpp:700: writer.end(); don't need this anymore.
7 years ago (2013-11-25 20:29:28 UTC) #9
jcgregorio
https://codereview.chromium.org/83863002/diff/150001/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.chromium.org/83863002/diff/150001/bench/benchmain.cpp#newcode700 bench/benchmain.cpp:700: writer.end(); On 2013/11/25 20:29:28, djsollen wrote: > don't need ...
7 years ago (2013-11-25 20:57:42 UTC) #10
djsollen
lgtm
7 years ago (2013-11-25 21:06:16 UTC) #11
jcgregorio
On 2013/11/25 21:06:16, djsollen wrote: > lgtm Moved CallEnd into ResultsWriter.h per offline conversation.
7 years ago (2013-11-26 16:30:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jcgregorio@google.com/83863002/190001
7 years ago (2013-12-02 13:48:31 UTC) #13
commit-bot: I haz the power
Presubmit check for 83863002-190001 failed and returned exit status 1. Running presubmit commit checks ...
7 years ago (2013-12-02 13:48:35 UTC) #14
bsalomon
lgtm
7 years ago (2013-12-02 19:49:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jcgregorio@google.com/83863002/210001
7 years ago (2013-12-03 04:46:22 UTC) #16
jcgregorio
https://codereview.chromium.org/83863002/diff/230001/bench/ResultsWriter.h File bench/ResultsWriter.h (right): https://codereview.chromium.org/83863002/diff/230001/bench/ResultsWriter.h#newcode63 bench/ResultsWriter.h:63: "\nrunning bench [%3d %3d] %40s", x, y, name)); %040s ...
7 years ago (2013-12-03 14:21:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jcgregorio@google.com/83863002/230001
7 years ago (2013-12-03 15:52:40 UTC) #18
commit-bot: I haz the power
7 years ago (2013-12-03 18:16:51 UTC) #19
Message was sent while issue was closed.
Change committed as 12465

Powered by Google App Engine
This is Rietveld 408576698