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

Issue 3129002: Create a bootstat library for external C and C++ programs (Closed)

Created:
10 years, 4 months ago by jrbarnette
Modified:
9 years, 6 months ago
Reviewers:
petkov, adlr
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, DaveMoore, Sam Leffler, rochberg
Base URL:
ssh://gitrw.chromium.org/bootstat.git
Visibility:
Public.

Description

Create a bootstat library for external C and C++ programs BUG=none TEST=emerge-x86-generic bootstat

Patch Set 1 #

Patch Set 2 : Export MAX_EVENT_LEN as part of the bootstat_log() interface #

Patch Set 3 : Fix bootstat_log() to include disk statistics on target devices #

Total comments: 17

Patch Set 4 : Update per style comments #

Patch Set 5 : Further updates per style comments #

Total comments: 5

Patch Set 6 : More changes in response to style comments #

Patch Set 7 : Change to improve naming consistency #

Patch Set 8 : Add unit tests to cover event name truncation #

Total comments: 3

Patch Set 9 : Whitespace fixes in response to code review #

Patch Set 10 : Fix whitespace issue found by presubmit check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -74 lines) Patch
M Makefile View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -9 lines 0 comments Download
M README View 2 chunks +20 lines, -14 lines 0 comments Download
M bootstat.h View 2 3 4 5 6 7 2 chunks +27 lines, -2 lines 0 comments Download
M bootstat.c View 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M bootstat_log.c View 2 3 4 5 6 7 4 chunks +39 lines, -47 lines 0 comments Download
A log_unit_tests.cc View 8 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jrbarnette
This is one of a trio of changes to allow flimflam to report boot time ...
10 years, 4 months ago (2010-08-10 21:23:58 UTC) #1
jrbarnette
On 2010/08/10 21:23:58, jrbarnette wrote: > This is one of a trio of changes to ...
10 years, 4 months ago (2010-08-10 21:36:31 UTC) #2
rochberg
LGTM, though I'd love to see a tiny little unittest http://codereview.chromium.org/3129002/diff/5001/6002 File bootstat.h (right): http://codereview.chromium.org/3129002/diff/5001/6002#newcode16 ...
10 years, 4 months ago (2010-08-11 01:32:21 UTC) #3
adlr
couple nits. i suggest you review the google c++ style guide and apply for readability. ...
10 years, 4 months ago (2010-08-11 02:15:00 UTC) #4
jrbarnette
In the interest of clarifying and streamlining my outstanding review requests, I've moved some reviewers ...
10 years, 4 months ago (2010-08-11 02:27:47 UTC) #5
jrbarnette
On Aug 10, 2010, at 7:15 PM, adlr@chromium.org wrote: > couple nits. i suggest you ...
10 years, 4 months ago (2010-08-11 03:26:55 UTC) #6
petkov
A few style nits and some random remarks related to these general comments: - Using ...
10 years, 4 months ago (2010-08-11 04:44:29 UTC) #7
jrbarnette
On 2010/08/11 01:32:21, rochberg wrote: > LGTM, though I'd love to see a tiny little ...
10 years, 4 months ago (2010-08-11 17:44:23 UTC) #8
jrbarnette
On Aug 10, 2010, at 9:44 PM, petkov@chromium.org wrote: > A few style nits and ...
10 years, 4 months ago (2010-08-11 18:15:27 UTC) #9
petkov
It's helpful if you respond to reviews by clicking Reply on each individual comment. On ...
10 years, 4 months ago (2010-08-11 18:26:03 UTC) #10
jrbarnette
On 2010/08/11 18:26:03, petkov wrote: [ ... ] > > > http://codereview.chromium.org/3129002/diff/5001/6003#newcode45 > > > ...
10 years, 4 months ago (2010-08-11 20:57:26 UTC) #11
petkov
Mostly style nits, LGTM otherwise. I just have hard time believing that this code will ...
10 years, 4 months ago (2010-08-11 21:20:44 UTC) #12
jrbarnette
On 2010/08/11 21:20:44, petkov wrote: [ ... ] > http://codereview.chromium.org/3129002/diff/20001/21004#newcode13 > bootstat_log.c:13: #include "bootstat.h" > ...
10 years, 4 months ago (2010-08-11 23:11:29 UTC) #13
petkov-google
On 2010/08/11 23:11:29, jrbarnette wrote: > On 2010/08/11 21:20:44, petkov wrote: > [ ... ] ...
10 years, 4 months ago (2010-08-11 23:25:15 UTC) #14
petkov
On 2010/08/11 23:25:15, petkov-google wrote: > On 2010/08/11 23:11:29, jrbarnette wrote: > > On 2010/08/11 ...
10 years, 4 months ago (2010-08-11 23:26:14 UTC) #15
jrbarnette
PTAL. I've updated the code with a gtest-based unit test. I manually verified the test ...
10 years, 4 months ago (2010-08-16 18:51:07 UTC) #16
petkov
LGTM Glad to see basic unit tests! :-) http://codereview.chromium.org/3129002/diff/8003/31006 File log_unit_tests.cc (right): http://codereview.chromium.org/3129002/diff/8003/31006#newcode37 log_unit_tests.cc:37: static ...
10 years, 4 months ago (2010-08-16 19:19:47 UTC) #17
jrbarnette
10 years, 4 months ago (2010-08-16 20:26:41 UTC) #18
On 2010/08/16 19:19:47, petkov wrote:
[ ... ]
> http://codereview.chromium.org/3129002/diff/8003/31006#newcode37
> log_unit_tests.cc:37: static void TestEventByName(const string& event_name) {
> You could probably also test that the event file is not empty, a single line,
> something like that...
> 
I considered it.  I decided against it in the interest of wrapping this up and
enabling more immediately valuable work.

Powered by Google App Engine
This is Rietveld 408576698