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

Issue 11363173: Add DBusStatistics and DBusLogSource to log and show dbus stats (Closed)

Created:
8 years, 1 month ago by stevenjb
Modified:
8 years, 1 month ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, Greg Spencer (Chromium)
Visibility:
Public.

Description

Add DBusStatistics and DBusLogSource to log and show dbus stats The intention of this is to provide low overhead detailed logging to ensure that dbus call counts remain reasonable as we migrate NetworkLibrary and other systtems from src/chrome to src/chromeos. We already have UMA stats which provide high level numbers that we can watch, but this will make detailed debugging available for advanced users and in feedback reports. BUG=159635 For chrome/chrome_browser_chromeos.gypi: TBR=sky@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167742

Patch Set 1 : . #

Patch Set 2 : . #

Total comments: 40

Patch Set 3 : Rebase + refactor + respond to feedback #

Total comments: 19

Patch Set 4 : Address feedback #

Patch Set 5 : Change iterator code #

Patch Set 6 : Rebase #

Total comments: 20

Patch Set 7 : Address nits / add TestGetAsString #

Total comments: 4

Patch Set 8 : received_method_calls -> received_signals #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+590 lines, -13 lines) Patch
A + chrome/browser/chromeos/system_logs/dbus_log_source.h View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download
A chrome/browser/chromeos/system_logs/dbus_log_source.cc View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system_logs/system_logs_fetcher.cc View 1 2 3 4 5 6 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M dbus/dbus.gyp View 2 chunks +3 lines, -0 lines 0 comments Download
A dbus/dbus_statistics.h View 1 2 3 4 5 6 1 chunk +74 lines, -0 lines 0 comments Download
A dbus/dbus_statistics.cc View 1 2 3 4 5 6 7 1 chunk +271 lines, -0 lines 0 comments Download
A dbus/dbus_statistics_unittest.cc View 1 2 3 4 5 6 1 chunk +183 lines, -0 lines 0 comments Download
M dbus/object_proxy.cc View 1 2 3 4 5 6 7 8 6 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
stevenjb
8 years, 1 month ago (2012-11-09 22:01:48 UTC) #1
satorux1
looks like useful info! http://codereview.chromium.org/11363173/diff/5001/chromeos/dbus/debug_daemon_client.cc File chromeos/dbus/debug_daemon_client.cc (right): http://codereview.chromium.org/11363173/diff/5001/chromeos/dbus/debug_daemon_client.cc#newcode573 chromeos/dbus/debug_daemon_client.cc:573: base::Bind(callback, false, "")); Changes in ...
8 years, 1 month ago (2012-11-12 00:40:43 UTC) #2
hashimoto
http://codereview.chromium.org/11363173/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc File chrome/browser/chromeos/system_logs/dbus_log_source.cc (right): http://codereview.chromium.org/11363173/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc#newcode7 chrome/browser/chromeos/system_logs/dbus_log_source.cc:7: #include "base/message_loop.h" nit: No need to include this. http://codereview.chromium.org/11363173/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc#newcode17 ...
8 years, 1 month ago (2012-11-12 04:33:16 UTC) #3
satorux1
http://codereview.chromium.org/11363173/diff/5001/dbus/dbus_statistics.h File dbus/dbus_statistics.h (right): http://codereview.chromium.org/11363173/diff/5001/dbus/dbus_statistics.h#newcode43 dbus/dbus_statistics.h:43: DbusStatistics(); On 2012/11/12 04:33:16, hashimoto wrote: > Since all ...
8 years, 1 month ago (2012-11-12 04:43:17 UTC) #4
stevenjb
http://codereview.chromium.org/11363173/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc File chrome/browser/chromeos/system_logs/dbus_log_source.cc (right): http://codereview.chromium.org/11363173/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc#newcode7 chrome/browser/chromeos/system_logs/dbus_log_source.cc:7: #include "base/message_loop.h" On 2012/11/12 04:33:16, hashimoto wrote: > nit: ...
8 years, 1 month ago (2012-11-12 19:46:40 UTC) #5
gauravsh
http://codereview.chromium.org/11363173/diff/5001/dbus/dbus_statistics_unittest.cc File dbus/dbus_statistics_unittest.cc (right): http://codereview.chromium.org/11363173/diff/5001/dbus/dbus_statistics_unittest.cc#newcode86 dbus/dbus_statistics_unittest.cc:86: } On 2012/11/12 19:46:40, stevenjb (chromium) wrote: > On ...
8 years, 1 month ago (2012-11-12 21:41:57 UTC) #6
stevenjb
It is likely that the output format for GetAsString will evolve over time. We shouldn't ...
8 years, 1 month ago (2012-11-12 22:34:40 UTC) #7
gauravsh
I'd say a unit test does more than help catch regressions, it also helps codify ...
8 years, 1 month ago (2012-11-12 23:07:34 UTC) #8
gauravsh
LGTM modulo the postincrement nit.
8 years, 1 month ago (2012-11-12 23:07:59 UTC) #9
stevenjb
On 2012/11/12 23:07:34, gauravsh wrote: > I'd say a unit test does more than help ...
8 years, 1 month ago (2012-11-12 23:17:57 UTC) #10
gauravsh
Here's the relevant style guide section: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Preincrement_and_Predecrement#Preincrement_and_Predecrement I agree about the readability aspect. You could ...
8 years, 1 month ago (2012-11-12 23:27:48 UTC) #11
stevenjb
On 2012/11/12 23:27:48, gauravsh wrote: > Here's the relevant style guide section: > > http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Preincrement_and_Predecrement#Preincrement_and_Predecrement ...
8 years, 1 month ago (2012-11-12 23:43:45 UTC) #12
gauravsh
On 2012/11/12 23:43:45, stevenjb (chromium) wrote: > On 2012/11/12 23:27:48, gauravsh wrote: > > Here's ...
8 years, 1 month ago (2012-11-12 23:49:27 UTC) #13
satorux1
Re unit test for GetAsString(), I'm with gauravsh@. When modifying a non-trivial formatter like this, ...
8 years, 1 month ago (2012-11-13 04:11:06 UTC) #14
hashimoto
http://codereview.chromium.org/11363173/diff/4017/chrome/browser/chromeos/system_logs/dbus_log_source.cc File chrome/browser/chromeos/system_logs/dbus_log_source.cc (right): http://codereview.chromium.org/11363173/diff/4017/chrome/browser/chromeos/system_logs/dbus_log_source.cc#newcode15 chrome/browser/chromeos/system_logs/dbus_log_source.cc:15: const char kDbusLogEntryLong[] = "dbus_details"; nit: s/Dbus/DBus/ http://codereview.chromium.org/11363173/diff/4017/dbus/dbus_statistics.cc File ...
8 years, 1 month ago (2012-11-13 06:11:44 UTC) #15
stevenjb
Addressed feedback. Added TestGetAsString and a reminder comment so that I don't forget to change ...
8 years, 1 month ago (2012-11-13 19:54:15 UTC) #16
satorux1
LGTM with nits. Please also s/Dbus/DBus/g in the patch description. http://codereview.chromium.org/11363173/diff/13/dbus/dbus_statistics.cc File dbus/dbus_statistics.cc (right): http://codereview.chromium.org/11363173/diff/13/dbus/dbus_statistics.cc#newcode36 ...
8 years, 1 month ago (2012-11-13 22:31:04 UTC) #17
stevenjb
http://codereview.chromium.org/11363173/diff/13/dbus/dbus_statistics.cc File dbus/dbus_statistics.cc (right): http://codereview.chromium.org/11363173/diff/13/dbus/dbus_statistics.cc#newcode36 dbus/dbus_statistics.cc:36: int received_method_calls; On 2012/11/13 22:31:04, satorux1 wrote: > received_signals ...
8 years, 1 month ago (2012-11-13 22:49:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11363173/11005
8 years, 1 month ago (2012-11-14 19:08:19 UTC) #19
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 21:03:31 UTC) #20
Change committed as 167742

Powered by Google App Engine
This is Rietveld 408576698