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

Issue 1799001: Log time between network drops -- from online to offline. (Closed)

Created:
10 years, 8 months ago by petkov
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, sosa, Luigi Semenzato
Base URL:
ssh://git@chromiumos-git/chromeos
Visibility:
Public.

Description

Log time between network drops -- from online to offline. Rewrite most of metrics_daemon. Convert to low-level D-Bus API -- this simplifies the code a little and also allows us to catch the power state signal. I still suspect we may be abusing D-Bus a little but it seems to work. snanda@ -- please review the power state code specifically. BUG=none TEST=tested on target platform and arm-generic builds

Patch Set 1 #

Patch Set 2 : Always log the metric -- don't add --test option. #

Total comments: 8

Patch Set 3 : Address review comments. #

Patch Set 4 : address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -173 lines) Patch
M src/platform/acpi/action_lid.sh View 1 2 3 1 chunk +15 lines, -7 lines 0 comments Download
M src/platform/metrics/Makefile View 4 chunks +6 lines, -19 lines 0 comments Download
D src/platform/metrics/marshal_void__string_boxed.list View 1 chunk +0 lines, -1 line 0 comments Download
M src/platform/metrics/metrics_daemon.h View 1 2 3 chunks +42 lines, -43 lines 0 comments Download
M src/platform/metrics/metrics_daemon.cc View 1 2 2 chunks +141 lines, -96 lines 0 comments Download
M src/platform/metrics/network_states.h View 2 chunks +1 line, -7 lines 0 comments Download
A src/platform/metrics/power_states.h View 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
petkov
10 years, 8 months ago (2010-04-26 21:43:14 UTC) #1
petkov
Uploaded patch 2.
10 years, 8 months ago (2010-04-26 21:50:41 UTC) #2
Sameer Nanda
LGTM w/ nits for power state related code. http://codereview.chromium.org/1799001/diff/3001/1012 File src/platform/metrics/metrics_daemon.cc (right): http://codereview.chromium.org/1799001/diff/3001/1012#newcode138 src/platform/metrics/metrics_daemon.cc:138: // ...
10 years, 8 months ago (2010-04-26 22:06:24 UTC) #3
Luigi Semenzato
Comment style nitpicks, plus one issue about the relationship of network states and power states. ...
10 years, 8 months ago (2010-04-26 22:45:51 UTC) #4
petkov
Thanks for the quick review. PTAL. http://codereview.chromium.org/1799001/diff/3001/1012 File src/platform/metrics/metrics_daemon.cc (right): http://codereview.chromium.org/1799001/diff/3001/1012#newcode138 src/platform/metrics/metrics_daemon.cc:138: // dropping. Don't ...
10 years, 8 months ago (2010-04-27 00:27:21 UTC) #5
Luigi Semenzato
LGTM Optionally fix the imperatives in the shell script too. I also wonder if it ...
10 years, 8 months ago (2010-04-27 00:53:46 UTC) #6
petkov
10 years, 8 months ago (2010-04-27 18:06:30 UTC) #7
On 2010/04/27 00:53:46, Luigi Semenzato wrote:
> LGTM
> 
> Optionally fix the imperatives in the shell script too.

Done.

> 
> I also wonder if it wouldn't be useful to histogram the duration of the
offline
> intervals.

Might be, separate CL. Trying to go through P0s now...

Pushed.

Thanks.

Powered by Google App Engine
This is Rietveld 408576698