Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Issue 19656006: Added UMA metrics for daily data reduction. (Closed)

Created:
7 years, 5 months ago by bolian
Modified:
7 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jar (doing other things)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Added UMA metrics for daily data reduction. BUG=226138 isherman: for histogram.xml. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216224

Patch Set 1 #

Patch Set 2 : Updated histograms.xml #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 28

Patch Set 6 : 'Addressed some comments (not done)' #

Total comments: 16

Patch Set 7 : Address comments. #

Total comments: 17

Patch Set 8 : Revision on comments. #

Total comments: 14

Patch Set 9 : mmenke's comments #

Patch Set 10 : lint #

Total comments: 9

Patch Set 11 : bengr comments. #

Total comments: 4

Patch Set 12 : Record bytes in KB #

Patch Set 13 : . #

Total comments: 2

Patch Set 14 : s/KBytes/KB in histograms.xml #

Patch Set 15 : s/KBytes/KB #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -14 lines) Patch
M chrome/browser/io_thread.cc View 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +127 lines, -13 lines 3 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
bolian
Hello Ben, Jim, and Matt, Please take a look at this UMA CL for bytes ...
7 years, 5 months ago (2013-07-25 00:33:48 UTC) #1
mmenke
On 2013/07/25 00:33:48, bolian wrote: > Hello Ben, Jim, and Matt, > > Please take ...
7 years, 5 months ago (2013-07-25 00:36:31 UTC) #2
jar (doing other things)
7 years, 5 months ago (2013-07-25 01:03:27 UTC) #3
bengr
If you add defined(OS_IOS), please verify that the reporting is correct for IOS. https://chromiumcodereview.appspot.com/19656006/diff/9001/chrome/browser/net/chrome_network_delegate.cc File ...
7 years, 5 months ago (2013-07-26 19:17:04 UTC) #4
bolian
https://chromiumcodereview.appspot.com/19656006/diff/9001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/19656006/diff/9001/chrome/browser/net/chrome_network_delegate.cc#newcode235 chrome/browser/net/chrome_network_delegate.cc:235: if(!list_update->GetString(index, &value)) return -1; returning 0 now. https://chromiumcodereview.appspot.com/19656006/diff/9001/chrome/browser/net/chrome_network_delegate.cc#newcode244 chrome/browser/net/chrome_network_delegate.cc:244: ...
7 years, 4 months ago (2013-07-29 07:07:45 UTC) #5
mmenke
Just a couple very quick nits. https://codereview.chromium.org/19656006/diff/20001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/19656006/diff/20001/chrome/browser/net/chrome_network_delegate.cc#newcode234 chrome/browser/net/chrome_network_delegate.cc:234: std::string value; nit: ...
7 years, 4 months ago (2013-07-29 18:58:30 UTC) #6
bolian
Thanks. Ptal. https://chromiumcodereview.appspot.com/19656006/diff/9001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/19656006/diff/9001/chrome/browser/net/chrome_network_delegate.cc#newcode233 chrome/browser/net/chrome_network_delegate.cc:233: int64 ListPrefInt64Value(ListPrefUpdate& list_update, size_t index) { On ...
7 years, 4 months ago (2013-07-29 22:05:02 UTC) #7
bengr
https://codereview.chromium.org/19656006/diff/28001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/19656006/diff/28001/chrome/browser/io_thread.cc#newcode804 chrome/browser/io_thread.cc:804: registry->RegisterBooleanPref(prefs::kSpdyProxyAuthEnabled, false); Why is this pref now being registered ...
7 years, 4 months ago (2013-07-30 21:14:04 UTC) #8
bolian
Thanks, ptal. https://codereview.chromium.org/19656006/diff/28001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/19656006/diff/28001/chrome/browser/io_thread.cc#newcode804 chrome/browser/io_thread.cc:804: registry->RegisterBooleanPref(prefs::kSpdyProxyAuthEnabled, false); I thought all referenced prefs ...
7 years, 4 months ago (2013-07-31 01:37:56 UTC) #9
mmenke
https://chromiumcodereview.appspot.com/19656006/diff/35001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/19656006/diff/35001/chrome/browser/net/chrome_network_delegate.cc#newcode244 chrome/browser/net/chrome_network_delegate.cc:244: void UmaDailyContentLength( Function names should generally be verbs or ...
7 years, 4 months ago (2013-07-31 14:59:32 UTC) #10
mmenke
https://chromiumcodereview.appspot.com/19656006/diff/35001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/19656006/diff/35001/chrome/browser/net/chrome_network_delegate.cc#newcode248 chrome/browser/net/chrome_network_delegate.cc:248: const base::ListValue& via_data_reduction_update) { On 2013/07/31 14:59:32, mmenke wrote: ...
7 years, 4 months ago (2013-07-31 15:02:59 UTC) #11
bolian
Thank you! Please take another look. https://chromiumcodereview.appspot.com/19656006/diff/35001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/19656006/diff/35001/chrome/browser/net/chrome_network_delegate.cc#newcode244 chrome/browser/net/chrome_network_delegate.cc:244: void UmaDailyContentLength( On ...
7 years, 4 months ago (2013-07-31 20:53:45 UTC) #12
mmenke
LGTM https://codereview.chromium.org/19656006/diff/43001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/19656006/diff/43001/chrome/browser/net/chrome_network_delegate.cc#newcode275 chrome/browser/net/chrome_network_delegate.cc:275: (100 * length_with_data_reduction_enabled) / received_length); Given any thought ...
7 years, 4 months ago (2013-08-02 15:56:40 UTC) #13
mmenke
On 2013/08/02 15:56:40, mmenke wrote: > LGTM > > https://codereview.chromium.org/19656006/diff/43001/chrome/browser/net/chrome_network_delegate.cc > File chrome/browser/net/chrome_network_delegate.cc (right): > ...
7 years, 4 months ago (2013-08-02 15:57:12 UTC) #14
bolian
Thanks! https://codereview.chromium.org/19656006/diff/43001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/19656006/diff/43001/chrome/browser/net/chrome_network_delegate.cc#newcode275 chrome/browser/net/chrome_network_delegate.cc:275: (100 * length_with_data_reduction_enabled) / received_length); Yes, received length ...
7 years, 4 months ago (2013-08-02 17:08:49 UTC) #15
bolian
https://codereview.chromium.org/19656006/diff/43001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/19656006/diff/43001/chrome/browser/net/chrome_network_delegate.cc#newcode275 chrome/browser/net/chrome_network_delegate.cc:275: (100 * length_with_data_reduction_enabled) / received_length); replied above.
7 years, 4 months ago (2013-08-02 17:13:59 UTC) #16
bengr
https://codereview.chromium.org/19656006/diff/43001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/19656006/diff/43001/chrome/browser/io_thread.cc#newcode804 chrome/browser/io_thread.cc:804: registry->RegisterBooleanPref(prefs::kSpdyProxyAuthEnabled, false); Is this necessary? https://codereview.chromium.org/19656006/diff/43001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): ...
7 years, 4 months ago (2013-08-02 18:00:46 UTC) #17
bolian
thanks. https://codereview.chromium.org/19656006/diff/43001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/19656006/diff/43001/chrome/browser/io_thread.cc#newcode804 chrome/browser/io_thread.cc:804: registry->RegisterBooleanPref(prefs::kSpdyProxyAuthEnabled, false); I tested it and I think ...
7 years, 4 months ago (2013-08-02 20:24:25 UTC) #18
bolian
ping? Ilya, I added you to review the histograms.xml change since jar is OOO.
7 years, 4 months ago (2013-08-05 18:06:32 UTC) #19
bengr
lgtm
7 years, 4 months ago (2013-08-06 01:04:56 UTC) #20
Ilya Sherman
https://codereview.chromium.org/19656006/diff/57001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/19656006/diff/57001/tools/metrics/histograms/histograms.xml#newcode5662 tools/metrics/histograms/histograms.xml:5662: <histogram name="Net.DailyHttpContentLengthViaDataReductionProxy" units="bytes"> Hmm, would KB or MB perhaps ...
7 years, 4 months ago (2013-08-06 06:59:20 UTC) #21
Ilya Sherman
On 2013/08/05 18:06:32, bolian wrote: > ping? Ilya, I added you to review the histograms.xml ...
7 years, 4 months ago (2013-08-06 07:01:08 UTC) #22
bolian
https://codereview.chromium.org/19656006/diff/57001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/19656006/diff/57001/tools/metrics/histograms/histograms.xml#newcode5662 tools/metrics/histograms/histograms.xml:5662: <histogram name="Net.DailyHttpContentLengthViaDataReductionProxy" units="bytes"> Wow, I did not realize it ...
7 years, 4 months ago (2013-08-06 07:37:30 UTC) #23
bolian
hey, no problem. I did put "isherman: for histogram.xml" in description. But now I know ...
7 years, 4 months ago (2013-08-06 07:38:54 UTC) #24
Ilya Sherman
lgtm, thanks https://codereview.chromium.org/19656006/diff/72001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/19656006/diff/72001/chrome/browser/net/chrome_network_delegate.cc#newcode249 chrome/browser/net/chrome_network_delegate.cc:249: // Record metrics in KBytes. Optional nit: ...
7 years, 4 months ago (2013-08-06 07:48:56 UTC) #25
bolian
Thanks! https://codereview.chromium.org/19656006/diff/72001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/19656006/diff/72001/chrome/browser/net/chrome_network_delegate.cc#newcode249 chrome/browser/net/chrome_network_delegate.cc:249: // Record metrics in KBytes. On 2013/08/06 07:48:56, ...
7 years, 4 months ago (2013-08-06 07:54:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/19656006/71002
7 years, 4 months ago (2013-08-06 17:07:56 UTC) #27
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=19059
7 years, 4 months ago (2013-08-06 17:19:28 UTC) #28
bolian
Looks like I still miss an owner lgtm for chrome/browser/io_thread.cc. thestig@, Could you take a ...
7 years, 4 months ago (2013-08-06 19:36:34 UTC) #29
Lei Zhang
chrome/browser/io_thread.cc lgtm
7 years, 4 months ago (2013-08-06 19:56:04 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/19656006/71002
7 years, 4 months ago (2013-08-06 20:06:09 UTC) #31
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=156903
7 years, 4 months ago (2013-08-06 21:04:05 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/19656006/71002
7 years, 4 months ago (2013-08-07 04:10:05 UTC) #33
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=157233
7 years, 4 months ago (2013-08-07 04:58:58 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/19656006/71002
7 years, 4 months ago (2013-08-07 17:11:32 UTC) #35
commit-bot: I haz the power
Change committed as 216224
7 years, 4 months ago (2013-08-07 17:40:45 UTC) #36
Ted C
https://chromiumcodereview.appspot.com/19656006/diff/71002/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/19656006/diff/71002/chrome/browser/net/chrome_network_delegate.cc#newcode404 chrome/browser/net/chrome_network_delegate.cc:404: DCHECK_EQ(kNumDaysInHistory, data_reduction_enabled_update->GetSize()); I just updated my local android build, ...
7 years, 4 months ago (2013-08-09 19:14:16 UTC) #37
bengr
https://chromiumcodereview.appspot.com/19656006/diff/71002/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/19656006/diff/71002/chrome/browser/net/chrome_network_delegate.cc#newcode404 chrome/browser/net/chrome_network_delegate.cc:404: DCHECK_EQ(kNumDaysInHistory, data_reduction_enabled_update->GetSize()); This is a bug. I think what's ...
7 years, 4 months ago (2013-08-09 19:40:02 UTC) #38
bengr
https://chromiumcodereview.appspot.com/19656006/diff/71002/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/19656006/diff/71002/chrome/browser/net/chrome_network_delegate.cc#newcode328 chrome/browser/net/chrome_network_delegate.cc:328: I'd do this to fix: // Add an invariant ...
7 years, 4 months ago (2013-08-09 20:11:40 UTC) #39
bolian
7 years, 4 months ago (2013-08-09 22:25:21 UTC) #40
Message was sent while issue was closed.
Sorry, folks. I am sending a CL for review:
https://codereview.chromium.org/22495008

Powered by Google App Engine
This is Rietveld 408576698