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

Issue 12207058: Connect SparseHistogram with the rest of stats system (Closed)

Created:
7 years, 10 months ago by kaiwang
Modified:
7 years, 9 months ago
CC:
chromium-reviews, MAD, jar (doing other things), jam, cbentzel+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, Ilya Sherman, gavinp+disk_chromium.org
Visibility:
Public.

Description

Connect SparseHistogram with the rest of stats system With this CL, SparseHistogram is usable with SparseHistogram::FactoryGet. Next step is to implement a Histogram like macro and implement WriteHTMLGraph and WriteAscii to have a nice output. BUG=139612 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185451

Patch Set 1 #

Patch Set 2 : Fix and add tests #

Total comments: 18

Patch Set 3 : Address comments and rebase #

Patch Set 4 : Fix linux compiling #

Total comments: 2

Patch Set 5 : Address comments and fix mac compiling #

Total comments: 4

Patch Set 6 : Address comments #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -158 lines) Patch
M base/metrics/histogram.h View 1 2 3 4 2 chunks +1 line, -11 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 4 12 chunks +10 lines, -46 lines 0 comments Download
M base/metrics/histogram_base.h View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M base/metrics/histogram_base.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M base/metrics/histogram_base_unittest.cc View 1 1 chunk +20 lines, -1 line 0 comments Download
M base/metrics/histogram_flattener.h View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M base/metrics/histogram_snapshot_manager.h View 2 chunks +3 lines, -3 lines 0 comments Download
M base/metrics/histogram_snapshot_manager.cc View 1 2 3 4 5 4 chunks +7 lines, -7 lines 0 comments Download
M base/metrics/histogram_unittest.cc View 1 2 3 4 5 4 chunks +10 lines, -9 lines 0 comments Download
M base/metrics/sparse_histogram.cc View 1 2 3 4 1 chunk +10 lines, -3 lines 0 comments Download
M base/metrics/statistics_recorder.h View 4 chunks +5 lines, -5 lines 0 comments Download
M base/metrics/statistics_recorder.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chrome_browser_application_mac_unittest.mm View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/metrics_private/metrics_apitest.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client_unittest.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_metrics_unittest.cc View 1 2 3 6 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/password_generation_bubble_controller_unittest.mm View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/metrics/metrics_service_base.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/metrics/metrics_service_base.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/common/startup_metric_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/uma_histogram_helper.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/histogram_message_filter.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/common/child_histogram_message_filter.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/child_histogram_message_filter.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/dom_automation_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M dbus/signal_sender_verification_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/stats_histogram.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/stats_histogram.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M net/socket_stream/socket_stream_metrics_unittest.cc View 1 2 3 12 chunks +15 lines, -14 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
kaiwang
Please take a look. I'll take a 2 weeks' vacation, so it's not a hurry ...
7 years, 10 months ago (2013-02-07 05:24:02 UTC) #1
Ilya Sherman
https://codereview.chromium.org/12207058/diff/1001/base/metrics/histogram.cc File base/metrics/histogram.cc (left): https://codereview.chromium.org/12207058/diff/1001/base/metrics/histogram.cc#oldcode108 base/metrics/histogram.cc:108: } Please check with Raman whether he's ok with ...
7 years, 10 months ago (2013-02-21 05:36:06 UTC) #2
kaiwang
https://codereview.chromium.org/12207058/diff/1001/base/metrics/histogram.cc File base/metrics/histogram.cc (left): https://codereview.chromium.org/12207058/diff/1001/base/metrics/histogram.cc#oldcode108 base/metrics/histogram.cc:108: } emailed him https://codereview.chromium.org/12207058/diff/1001/base/metrics/histogram_flattener.h File base/metrics/histogram_flattener.h (right): https://codereview.chromium.org/12207058/diff/1001/base/metrics/histogram_flattener.h#newcode27 base/metrics/histogram_flattener.h:27: ...
7 years, 10 months ago (2013-02-27 04:39:42 UTC) #3
kaiwang
OWNERS, please review this change: isherman: base/metrics/ jar: net/ brettw: chrome/ and content/ keybuk: dbus/ ...
7 years, 9 months ago (2013-02-27 18:24:26 UTC) #4
jar (doing other things)
Nit to consider below (which I stumbled over while looking at net/*) LGTM for patch ...
7 years, 9 months ago (2013-02-27 23:51:37 UTC) #5
Ilya Sherman
LGTM. https://codereview.chromium.org/12207058/diff/1001/base/metrics/sparse_histogram.cc File base/metrics/sparse_histogram.cc (right): https://codereview.chromium.org/12207058/diff/1001/base/metrics/sparse_histogram.cc#newcode32 base/metrics/sparse_histogram.cc:32: CHECK_EQ(SPARSE_HISTOGRAM, histogram->GetHistogramType()); On 2013/02/27 04:39:42, kaiwang wrote: > ...
7 years, 9 months ago (2013-02-28 00:29:55 UTC) #6
kaiwang
https://codereview.chromium.org/12207058/diff/1001/base/metrics/sparse_histogram.cc File base/metrics/sparse_histogram.cc (right): https://codereview.chromium.org/12207058/diff/1001/base/metrics/sparse_histogram.cc#newcode32 base/metrics/sparse_histogram.cc:32: CHECK_EQ(SPARSE_HISTOGRAM, histogram->GetHistogramType()); On 2013/02/28 00:29:56, Ilya Sherman wrote: > ...
7 years, 9 months ago (2013-02-28 04:58:04 UTC) #7
kaiwang
kindly ping brettw and keybuk...
7 years, 9 months ago (2013-02-28 18:14:34 UTC) #8
keybuk
lgtm for dbus/ sorry for the delay, this one slipped through the tracks
7 years, 9 months ago (2013-02-28 21:42:03 UTC) #9
brettw
LGTM with a few suggestions. https://codereview.chromium.org/12207058/diff/21002/base/metrics/histogram.h File base/metrics/histogram.h (right): https://codereview.chromium.org/12207058/diff/21002/base/metrics/histogram.h#newcode416 base/metrics/histogram.h:416: virtual int FindCorruption(const HistogramSamples& ...
7 years, 9 months ago (2013-02-28 22:56:25 UTC) #10
kaiwang
https://codereview.chromium.org/12207058/diff/21002/base/metrics/histogram.h File base/metrics/histogram.h (right): https://codereview.chromium.org/12207058/diff/21002/base/metrics/histogram.h#newcode416 base/metrics/histogram.h:416: virtual int FindCorruption(const HistogramSamples& samples) const OVERRIDE; This function ...
7 years, 9 months ago (2013-03-01 00:52:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/12207058/20007
7 years, 9 months ago (2013-03-01 01:14:14 UTC) #12
commit-bot: I haz the power
Failed to apply patch for content/browser/histogram_message_filter.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-01 01:14:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/12207058/20008
7 years, 9 months ago (2013-03-01 01:38:24 UTC) #14
commit-bot: I haz the power
7 years, 9 months ago (2013-03-01 03:53:28 UTC) #15
Message was sent while issue was closed.
Change committed as 185451

Powered by Google App Engine
This is Rietveld 408576698