Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3689)

Issue 6450095: Add -logFile option to Bench (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by EricB
Modified:
12 years, 4 months ago
Reviewers:
bungeman, epoger, DerekS
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add -logFile option to Bench Logs to a file as well as stdout. Useful for Android, where logging takes a different format. Committed: https://code.google.com/p/skia/source/detail?r=4963

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -29 lines) Patch
M bench/benchmain.cpp View 1 2 3 4 16 chunks +75 lines, -29 lines 0 comments Download

Messages

Total messages: 9
EricB
12 years, 4 months ago (2012-08-06 15:15:39 UTC) #1
epoger
https://codereview.appspot.com/6450095/diff/1001/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.appspot.com/6450095/diff/1001/bench/benchmain.cpp#newcode40 bench/benchmain.cpp:40: static void log_progress(const char msg[]) { printf("%s", msg); } ...
12 years, 4 months ago (2012-08-06 15:51:29 UTC) #2
EricB
On 2012/08/06 15:51:29, epoger wrote: > https://codereview.appspot.com/6450095/diff/1001/bench/benchmain.cpp > File bench/benchmain.cpp (right): > > https://codereview.appspot.com/6450095/diff/1001/bench/benchmain.cpp#newcode40 > ...
12 years, 4 months ago (2012-08-06 17:04:52 UTC) #3
epoger
LGTM at patchset 4, subject to the following quibbles. Maybe a future CL could move ...
12 years, 4 months ago (2012-08-06 17:18:54 UTC) #4
DerekS
http://codereview.appspot.com/6450095/diff/6003/bench/benchmain.cpp File bench/benchmain.cpp (right): http://codereview.appspot.com/6450095/diff/6003/bench/benchmain.cpp#newcode43 bench/benchmain.cpp:43: bool setLogFile(const char file[]) { I'm not sure I ...
12 years, 4 months ago (2012-08-06 17:24:21 UTC) #5
epoger
On 2012/08/06 17:24:21, DerekS wrote: > http://codereview.appspot.com/6450095/diff/6003/bench/benchmain.cpp > File bench/benchmain.cpp (right): > > http://codereview.appspot.com/6450095/diff/6003/bench/benchmain.cpp#newcode43 > ...
12 years, 4 months ago (2012-08-06 17:26:23 UTC) #6
DerekS
The extern funcion mentioned in the doc is bool SkIsOdd(int n); which is separate from ...
12 years, 4 months ago (2012-08-06 17:30:48 UTC) #7
EricB
On 2012/08/06 17:26:23, epoger wrote: > On 2012/08/06 17:24:21, DerekS wrote: > > http://codereview.appspot.com/6450095/diff/6003/bench/benchmain.cpp > ...
12 years, 4 months ago (2012-08-06 17:58:53 UTC) #8
epoger
12 years, 4 months ago (2012-08-06 18:07:38 UTC) #9
On 2012/08/06 17:58:53, EricB wrote:
> On 2012/08/06 17:26:23, epoger wrote:
> > On 2012/08/06 17:24:21, DerekS wrote:
> > > http://codereview.appspot.com/6450095/diff/6003/bench/benchmain.cpp
> > > File bench/benchmain.cpp (right):
> > > 
> > >
> http://codereview.appspot.com/6450095/diff/6003/bench/benchmain.cpp#newcode43
> > > bench/benchmain.cpp:43: bool setLogFile(const char file[]) {
> > > I'm not sure I agree. The leading cap is only for static functions.
> > 
> > "Externed functions or static class functions are camel-capped with an
initial
> > cap"
> > 
> > I'm not sure if "externed" includes "public", but that's what it shows in
the
> > example...
> > 
> > > 
> > > On 2012/08/06 17:18:55, epoger wrote:
> > > > Looking at
> > > >
> > >
> >
>
https://sites.google.com/site/skiadocs/developer-documentation/contributing-c...
> > > > , I guess these methods should be named as follows:
> > > > 
> > > > SetLogFile()
> > > > LogError()
> > > > LogProgress()
> 
> While that doc does not state a rule for class member functions (aside from
> static functions), a brief scan of some core Skia classes shows camel-case
with
> leading lower-case.

Gotcha.  Please ignore my naming comments... seems like we should update the
style guide to be more complete.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b