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

Issue 7824054: Add some histograms to the D-Bus library: (Closed)

Created:
9 years, 3 months ago by satorux1
Modified:
9 years, 3 months ago
Reviewers:
stevenjb
CC:
chromium-reviews
Visibility:
Public.

Description

Add some histograms to the D-Bus library: - DBus.SyncMethodCallTime: time spent to perform synchronos method calls - DBus.AsyncMethodCallTime: time spent to perform asynchronos method calls - DBus.SyncMethodCallSuccess: success ratio of synchronous method calls - DBus.AsyncMethodCallSuccess: success ratio of asynchronous method calls - DBus.ExportedMethodHandleTime: time spent to handle calls to export methods - DBus.ExportedMethodHandleSuccess: success ratio of the exported method calls - DBus.SignalHandleTime: time spent to handle signals - DBus.SignalSendTime: time spent to send signals BUG=chromium:90036 TEST=dbus_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99811

Patch Set 1 #

Total comments: 9

Patch Set 2 : constants #

Patch Set 3 : rate->ratio #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -21 lines) Patch
M dbus/bus.cc View 1 chunk +0 lines, -1 line 0 comments Download
M dbus/exported_object.h View 2 chunks +3 lines, -1 line 0 comments Download
M dbus/exported_object.cc View 1 2 8 chunks +23 lines, -1 line 0 comments Download
M dbus/object_proxy.h View 3 chunks +12 lines, -4 lines 0 comments Download
M dbus/object_proxy.cc View 1 2 14 chunks +52 lines, -14 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
satorux1
9 years, 3 months ago (2011-09-02 20:10:00 UTC) #1
stevenjb
http://codereview.chromium.org/7824054/diff/1/dbus/exported_object.cc File dbus/exported_object.cc (right): http://codereview.chromium.org/7824054/diff/1/dbus/exported_object.cc#newcode254 dbus/exported_object.cc:254: response ? 1 : 0, 2); nit: What does ...
9 years, 3 months ago (2011-09-02 20:43:26 UTC) #2
satorux1
http://codereview.chromium.org/7824054/diff/1/dbus/exported_object.cc File dbus/exported_object.cc (right): http://codereview.chromium.org/7824054/diff/1/dbus/exported_object.cc#newcode254 dbus/exported_object.cc:254: response ? 1 : 0, 2); On 2011/09/02 20:43:26, ...
9 years, 3 months ago (2011-09-02 21:57:11 UTC) #3
stevenjb
LGTM http://codereview.chromium.org/7824054/diff/1/dbus/exported_object.cc File dbus/exported_object.cc (right): http://codereview.chromium.org/7824054/diff/1/dbus/exported_object.cc#newcode254 dbus/exported_object.cc:254: response ? 1 : 0, 2); On 2011/09/02 ...
9 years, 3 months ago (2011-09-06 16:51:04 UTC) #4
satorux1
9 years, 3 months ago (2011-09-06 17:32:04 UTC) #5
http://codereview.chromium.org/7824054/diff/1/dbus/exported_object.cc
File dbus/exported_object.cc (right):

http://codereview.chromium.org/7824054/diff/1/dbus/exported_object.cc#newcode254
dbus/exported_object.cc:254: response ? 1 : 0, 2);
On 2011/09/06 16:51:04, Steven Bennetts wrote:
> On 2011/09/02 21:57:11, satorux1 wrote:
> > On 2011/09/02 20:43:26, Steven Bennetts wrote:
> > > nit: What does the '2' refer to?
> > 
> > 2 means this enumeration histogram takes values less than 2: 0 or 1. Any
ideas
> > on how to make it clearer?
> const int histogram_max_value = 2;
> On the other hand, it's just a histogram, so '2' is probably fine.

You were right that 2 was cryptic. Introduced kSuccessRateHistogramMaxValue = 2
with some comment.

Powered by Google App Engine
This is Rietveld 408576698