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

Issue 6486021: Collect some disk statistics. (Closed)

Created:
9 years, 10 months ago by Luigi Semenzato
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, sosa, petkov, Luigi Semenzato
Visibility:
Public.

Description

Collect some disk statistics. Change-Id: Id30f4b7e5d121f2632592ebacf47a18ea1d89fec BUG=chromium-os:12171 TEST=ran on target and observed that stats are generated Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=78d682c

Patch Set 1 #

Patch Set 2 : remove duplicate log and close file #

Total comments: 14

Patch Set 3 : Fixed style and added tests #

Total comments: 16

Patch Set 4 : avoid #define, goto, blank lines #

Total comments: 9

Patch Set 5 : cleanup from review #

Total comments: 7

Patch Set 6 : More small fixes. #

Patch Set 7 : Change metrix prefix Filesystem back to Platform #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -7 lines) Patch
M metrics_daemon.h View 1 2 3 4 6 chunks +41 lines, -1 line 0 comments Download
M metrics_daemon.cc View 1 2 3 4 5 6 6 chunks +123 lines, -2 lines 0 comments Download
M metrics_daemon_main.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M metrics_daemon_test.cc View 1 2 3 4 6 chunks +48 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Luigi Semenzato
Darin, you are the main reviewer. Mandeep and Stephan: please give feedback on the kind ...
9 years, 10 months ago (2011-02-11 00:28:53 UTC) #1
petkov
Some comments below. Care to add some unit tests to metrics_daemon_test.cc? You can also run ...
9 years, 10 months ago (2011-02-11 06:42:30 UTC) #2
Luigi Semenzato
On 2011/02/11 06:42:30, petkov wrote: > Some comments below. Care to add some unit tests ...
9 years, 10 months ago (2011-02-12 00:32:37 UTC) #3
Luigi Semenzato
http://codereview.chromium.org/6486021/diff/3001/metrics_daemon.cc File metrics_daemon.cc (right): http://codereview.chromium.org/6486021/diff/3001/metrics_daemon.cc#newcode106 metrics_daemon.cc:106: const char MetricsDaemon::kMetricsDiskStatsPath[] = "/sys/class/block/sda/stat"; On 2011/02/11 06:42:30, petkov ...
9 years, 10 months ago (2011-02-12 00:33:02 UTC) #4
petkov
A few more comments.. http://codereview.chromium.org/6486021/diff/5001/metrics_daemon.cc File metrics_daemon.cc (right): http://codereview.chromium.org/6486021/diff/5001/metrics_daemon.cc#newcode111 metrics_daemon.cc:111: const char MetricsDaemon::kMetricsDiskStatsPath[] = "/sys/class/block/sda/stat"; ...
9 years, 10 months ago (2011-02-12 05:34:45 UTC) #5
petkov
http://codereview.chromium.org/6486021/diff/5001/metrics_daemon.cc File metrics_daemon.cc (right): http://codereview.chromium.org/6486021/diff/5001/metrics_daemon.cc#newcode111 metrics_daemon.cc:111: const char MetricsDaemon::kMetricsDiskStatsPath[] = "/sys/class/block/sda/stat"; Isn't this something like ...
9 years, 10 months ago (2011-02-13 17:28:47 UTC) #6
Luigi Semenzato
Thanks! I have changed a few items as recommended, but I have questions on a ...
9 years, 10 months ago (2011-02-14 18:43:43 UTC) #7
Luigi Semenzato
On 2011/02/14 18:43:43, Luigi Semenzato wrote: > Thanks! I have changed a few items as ...
9 years, 10 months ago (2011-02-14 19:15:24 UTC) #8
petkov
shells scripts are evil for a production system, I think. if you end up doing ...
9 years, 10 months ago (2011-02-14 19:28:32 UTC) #9
Luigi Semenzato
Thanks. > shells scripts are evil for a production system, I think. They can be ...
9 years, 10 months ago (2011-02-14 23:24:17 UTC) #10
petkov
A few more final nits. I guess "Filesystem" is fine although the actual metric has ...
9 years, 10 months ago (2011-02-14 23:39:16 UTC) #11
Luigi Semenzato
On 2011/02/14 23:39:16, petkov wrote: > A few more final nits. > > I guess ...
9 years, 10 months ago (2011-02-15 00:09:39 UTC) #12
petkov
On 2011/02/15 00:09:39, Luigi Semenzato wrote: > On 2011/02/14 23:39:16, petkov wrote: > > A ...
9 years, 10 months ago (2011-02-15 00:46:48 UTC) #13
Luigi Semenzato
If it's up to me, LGTY then? On Mon, Feb 14, 2011 at 4:46 PM, ...
9 years, 10 months ago (2011-02-15 02:01:05 UTC) #14
petkov
LGTM (a PTAL would have helped to see something changed... :-) )
9 years, 10 months ago (2011-02-15 06:03:53 UTC) #15
Luigi Semenzato
Oh yeah, my bad! Thanks. On Mon, Feb 14, 2011 at 10:03 PM, <petkov@chromium.org> wrote: ...
9 years, 10 months ago (2011-02-15 17:20:53 UTC) #16
Luigi Semenzato
Forgot to save/publish. Here we go. http://codereview.chromium.org/6486021/diff/16001/metrics_daemon.cc File metrics_daemon.cc (right): http://codereview.chromium.org/6486021/diff/16001/metrics_daemon.cc#newcode144 metrics_daemon.cc:144: MetricsDaemon::MetricsDaemon() On 2011/02/14 ...
9 years, 10 months ago (2011-02-15 17:45:46 UTC) #17
petkov
9 years, 10 months ago (2011-02-15 20:00:50 UTC) #18
LGTM

Powered by Google App Engine
This is Rietveld 408576698