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

Issue 2624123002: Add UMA histograms to AsyncResourceHandler to track content size. (Closed)

Created:
3 years, 11 months ago by maksims (do not use this acc)
Modified:
3 years, 11 months ago
Reviewers:
eroman, jwd, mmenke
CC:
chromium-reviews, darin-cc_chromium.org, jam, loading-reviews_chromium.org, mmenke, Randy Smith (Not in Mondays)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA histograms to AsyncResourceHandler to track content size. This CL add UMA histograms, which are used to record how many times content size is known and if it is precise enough to be used. What is more, total size of read body is compared to the size of allocated buffer, which is 512kb, to record how many times its size is less than buffer's size. BUG=622363 Review-Url: https://codereview.chromium.org/2624123002 Cr-Commit-Position: refs/heads/master@{#445016} Committed: https://chromium.googlesource.com/chromium/src/+/18491e4f87ce2e5e53f64dad2a3da0a1f5688e01

Patch Set 1 #

Total comments: 25

Patch Set 2 : comments #

Total comments: 8

Patch Set 3 : comments #

Total comments: 4

Patch Set 4 : MT->GT and added another case for the histogram #

Total comments: 5

Patch Set 5 : jwd@ comments #

Total comments: 2

Patch Set 6 : remove not used entry in histogram.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -3 lines) Patch
M content/browser/loader/async_resource_handler.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 4 chunks +44 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (38 generated)
maksims (do not use this acc)
Do you think I should add, for example, a mean size value by which the ...
3 years, 11 months ago (2017-01-11 11:15:04 UTC) #14
maksims (do not use this acc)
Some observations: I've surfed the net a bit using my desktop with fast connection and ...
3 years, 11 months ago (2017-01-11 12:59:52 UTC) #17
mmenke
Looks pretty good! https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc#newcode75 content/browser/loader/async_resource_handler.cc:75: enum ExpectedContentSize { "enum class" should ...
3 years, 11 months ago (2017-01-11 20:25:20 UTC) #18
maksims (do not use this acc)
https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc#newcode75 content/browser/loader/async_resource_handler.cc:75: enum ExpectedContentSize { On 2017/01/11 20:25:19, mmenke wrote: > ...
3 years, 11 months ago (2017-01-12 09:03:03 UTC) #19
mmenke
https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc#newcode75 content/browser/loader/async_resource_handler.cc:75: enum ExpectedContentSize { On 2017/01/12 09:03:03, maksims wrote: > ...
3 years, 11 months ago (2017-01-12 18:04:11 UTC) #20
maksims (do not use this acc)
https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc#newcode76 content/browser/loader/async_resource_handler.cc:76: CORRESPONDS_TO_RESPONSE_BODY = 0, On 2017/01/11 20:25:20, mmenke wrote: > ...
3 years, 11 months ago (2017-01-13 12:05:18 UTC) #25
mmenke
https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/60001/content/browser/loader/async_resource_handler.cc#newcode573 content/browser/loader/async_resource_handler.cc:573: UMA_HISTOGRAM_ENUMERATION( On 2017/01/13 12:05:18, maksims wrote: > On 2017/01/11 ...
3 years, 11 months ago (2017-01-13 16:01:36 UTC) #26
maksims (do not use this acc)
https://codereview.chromium.org/2624123002/diff/80001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/80001/content/browser/loader/async_resource_handler.cc#newcode568 content/browser/loader/async_resource_handler.cc:568: if (expected_content_size >= 0) { On 2017/01/13 16:01:36, mmenke ...
3 years, 11 months ago (2017-01-16 07:25:22 UTC) #28
mmenke
Suggest you add an owner of tools/metrics/histograms/histograms.xml - think we're pretty much done (And sorry ...
3 years, 11 months ago (2017-01-17 15:58:27 UTC) #32
maksims (do not use this acc)
jochen@, would you please review changes in histograms.xml? https://codereview.chromium.org/2624123002/diff/100001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/100001/content/browser/loader/async_resource_handler.cc#newcode576 content/browser/loader/async_resource_handler.cc:576: ExpectedContentSizeResult::EQ_RESPONSE_BODY_MT_EQ_BUFFER_SIZE; ...
3 years, 11 months ago (2017-01-18 07:50:26 UTC) #34
jochen (gone - plz use gerrit)
I can only approve UseCounter additoins. For this histograms.xml change, please ask somebody from tools/metrics/OWNERS!
3 years, 11 months ago (2017-01-18 12:31:02 UTC) #39
maksims (do not use this acc)
jwd@, would you please review tools/metrics/histograms/histograms.xml
3 years, 11 months ago (2017-01-18 12:34:53 UTC) #42
mmenke
LGTM
3 years, 11 months ago (2017-01-18 16:28:40 UTC) #43
jwd
https://codereview.chromium.org/2624123002/diff/120001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/120001/content/browser/loader/async_resource_handler.cc#newcode76 content/browser/loader/async_resource_handler.cc:76: enum ExpectedContentSizeResult { Please add comment saying this enum ...
3 years, 11 months ago (2017-01-18 20:03:06 UTC) #44
maksims (do not use this acc)
https://codereview.chromium.org/2624123002/diff/120001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2624123002/diff/120001/content/browser/loader/async_resource_handler.cc#newcode76 content/browser/loader/async_resource_handler.cc:76: enum ExpectedContentSizeResult { On 2017/01/18 20:03:06, jwd wrote: > ...
3 years, 11 months ago (2017-01-19 05:56:50 UTC) #46
jwd
Histograms LGTM with follow up about Net.ResourceLoader.TotalBodySize.LT_AsyncHandlerBufferSize. https://codereview.chromium.org/2624123002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2624123002/diff/140001/tools/metrics/histograms/histograms.xml#newcode34771 tools/metrics/histograms/histograms.xml:34771: +<histogram name="Net.ResourceLoader.TotalBodySize.LT_AsyncHandlerBufferSize" ...
3 years, 11 months ago (2017-01-19 21:21:36 UTC) #50
maksims (do not use this acc)
https://codereview.chromium.org/2624123002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2624123002/diff/140001/tools/metrics/histograms/histograms.xml#newcode34771 tools/metrics/histograms/histograms.xml:34771: +<histogram name="Net.ResourceLoader.TotalBodySize.LT_AsyncHandlerBufferSize" On 2017/01/19 21:21:36, jwd wrote: > Are ...
3 years, 11 months ago (2017-01-20 05:51:01 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2624123002/160001
3 years, 11 months ago (2017-01-20 06:43:35 UTC) #54
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 08:20:30 UTC) #57
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/18491e4f87ce2e5e53f64dad2a3d...

Powered by Google App Engine
This is Rietveld 408576698