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 10829342: Add BytesRead metric to CPM (Closed)

Created:
8 years, 4 months ago by Devlin
Modified:
8 years, 3 months ago
Reviewers:
eaugusti, Yoyo Zhou, battre
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add BytesRead metric to CPM Add watching for how many bytes are read. Useful for future analytics, and to see periods of increased downloads. BUG=130212 TEST=Included browsertest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153553

Patch Set 1 #

Total comments: 13

Patch Set 2 : Requested changes + separation for disk/network reads #

Total comments: 13

Patch Set 3 : Threading Changes #

Total comments: 6

Patch Set 4 : Requested changes #

Total comments: 8

Patch Set 5 : Moved initialized check to PerformanceMonitor #

Patch Set 6 : Latest master for cq #

Patch Set 7 : Removed const char[]s so that FILE_PATH_LITERAL and append both work #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -1 line) Patch
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/metric.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/performance_monitor/metric_details.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.h View 1 2 3 4 6 chunks +50 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.cc View 1 2 3 4 5 5 chunks +56 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor_browsertest.cc View 1 2 3 4 5 6 3 chunks +47 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
Devlin
8 years, 4 months ago (2012-08-17 17:19:36 UTC) #1
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/10829342/diff/1/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/1/chrome/browser/performance_monitor/performance_monitor.cc#newcode257 chrome/browser/performance_monitor/performance_monitor.cc:257: enabled_ = true; It might be a little ...
8 years, 4 months ago (2012-08-18 01:48:56 UTC) #2
Devlin
+ battre for c/b/net
8 years, 4 months ago (2012-08-21 15:55:55 UTC) #3
battre
https://chromiumcodereview.appspot.com/10829342/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode239 chrome/browser/net/chrome_network_delegate.cc:239: bytes_read); OnRawBytesRead is called on the IO thread. In ...
8 years, 4 months ago (2012-08-21 16:16:04 UTC) #4
eaugusti
https://chromiumcodereview.appspot.com/10829342/diff/1/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/1/chrome/browser/performance_monitor/performance_monitor.cc#newcode386 chrome/browser/performance_monitor/performance_monitor.cc:386: void PerformanceMonitor::BytesRead(int bytes_read) { IO thread only? https://chromiumcodereview.appspot.com/10829342/diff/1/chrome/browser/performance_monitor/performance_monitor.h File ...
8 years, 4 months ago (2012-08-21 17:17:26 UTC) #5
Devlin
Next round. Yoyo, there may be enough of a delta since your review to warrant ...
8 years, 4 months ago (2012-08-21 19:46:46 UTC) #6
battre
https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.cc#newcode272 chrome/browser/performance_monitor/performance_monitor.cc:272: base::Int64ToString(bytes_read_.disk)); If you access bytes_read_ here, you must be ...
8 years, 4 months ago (2012-08-21 20:37:33 UTC) #7
eaugusti
https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.h File chrome/browser/performance_monitor/performance_monitor.h (right): https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.h#newcode58 chrome/browser/performance_monitor/performance_monitor.h:58: int64 disk; Should these be uint64?
8 years, 4 months ago (2012-08-21 21:19:32 UTC) #8
Yoyo Zhou
https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.h File chrome/browser/performance_monitor/performance_monitor.h (right): https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.h#newcode51 chrome/browser/performance_monitor/performance_monitor.h:51: // thread). When performing an action which should be ...
8 years, 4 months ago (2012-08-21 21:29:15 UTC) #9
Devlin
https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.h File chrome/browser/performance_monitor/performance_monitor.h (right): https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.h#newcode60 chrome/browser/performance_monitor/performance_monitor.h:60: }; On 2012/08/21 20:37:33, battre wrote: > I haven't ...
8 years, 4 months ago (2012-08-21 21:49:02 UTC) #10
Devlin
https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.h File chrome/browser/performance_monitor/performance_monitor.h (right): https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.h#newcode60 chrome/browser/performance_monitor/performance_monitor.h:60: }; On 2012/08/21 21:49:02, D Cronin wrote: > On ...
8 years, 4 months ago (2012-08-21 22:10:32 UTC) #11
Devlin
Round 3. https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/9003/chrome/browser/performance_monitor/performance_monitor.cc#newcode272 chrome/browser/performance_monitor/performance_monitor.cc:272: base::Int64ToString(bytes_read_.disk)); On 2012/08/21 20:37:33, battre wrote: > ...
8 years, 4 months ago (2012-08-21 22:51:52 UTC) #12
battre
https://chromiumcodereview.appspot.com/10829342/diff/10007/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/10007/chrome/browser/performance_monitor/performance_monitor.cc#newcode408 chrome/browser/performance_monitor/performance_monitor.cc:408: const PerformanceDataForIOThread& performance_data_for_io_thread) { you need to pass a ...
8 years, 4 months ago (2012-08-22 08:25:24 UTC) #13
Devlin
https://chromiumcodereview.appspot.com/10829342/diff/10007/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/10007/chrome/browser/performance_monitor/performance_monitor.cc#newcode408 chrome/browser/performance_monitor/performance_monitor.cc:408: const PerformanceDataForIOThread& performance_data_for_io_thread) { On 2012/08/22 08:25:24, battre wrote: ...
8 years, 4 months ago (2012-08-22 16:22:04 UTC) #14
battre
https://chromiumcodereview.appspot.com/10829342/diff/10007/chrome/browser/performance_monitor/performance_monitor_browsertest.cc File chrome/browser/performance_monitor/performance_monitor_browsertest.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/10007/chrome/browser/performance_monitor/performance_monitor_browsertest.cc#newcode754 chrome/browser/performance_monitor/performance_monitor_browsertest.cc:754: Database::MetricInfoVector metrics = GetStats(METRIC_NETWORK_BYTES_READ); On 2012/08/22 16:22:05, D Cronin ...
8 years, 4 months ago (2012-08-22 19:23:01 UTC) #15
Devlin
https://chromiumcodereview.appspot.com/10829342/diff/10007/chrome/browser/performance_monitor/performance_monitor_browsertest.cc File chrome/browser/performance_monitor/performance_monitor_browsertest.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/10007/chrome/browser/performance_monitor/performance_monitor_browsertest.cc#newcode754 chrome/browser/performance_monitor/performance_monitor_browsertest.cc:754: Database::MetricInfoVector metrics = GetStats(METRIC_NETWORK_BYTES_READ); On 2012/08/22 19:23:02, battre wrote: ...
8 years, 4 months ago (2012-08-22 20:34:54 UTC) #16
battre
LGTM after fixing final comments and if the try bots are happy. https://chromiumcodereview.appspot.com/10829342/diff/24001/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc ...
8 years, 4 months ago (2012-08-22 20:50:24 UTC) #17
Devlin
https://chromiumcodereview.appspot.com/10829342/diff/24001/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://chromiumcodereview.appspot.com/10829342/diff/24001/chrome/browser/performance_monitor/performance_monitor.cc#newcode110 chrome/browser/performance_monitor/performance_monitor.cc:110: performance_data_for_io_thread_.network_bytes_read = info.value; On 2012/08/22 20:50:24, battre wrote: > ...
8 years, 4 months ago (2012-08-23 16:41:01 UTC) #18
Devlin
Yoyo and Eriq: Anything more?
8 years, 4 months ago (2012-08-24 17:35:24 UTC) #19
Yoyo Zhou
Still LGTM
8 years, 4 months ago (2012-08-24 17:53:13 UTC) #20
eaugusti
lgtm
8 years, 4 months ago (2012-08-24 19:35:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/10829342/29002
8 years, 3 months ago (2012-08-27 17:01:01 UTC) #22
commit-bot: I haz the power
Try job failure for 10829342-29002 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-27 19:11:18 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/10829342/15016
8 years, 3 months ago (2012-08-27 19:36:08 UTC) #24
commit-bot: I haz the power
8 years, 3 months ago (2012-08-27 21:59:09 UTC) #25
Change committed as 153553

Powered by Google App Engine
This is Rietveld 408576698