|
|
Created:
7 years, 8 months ago by Stephen Modified:
7 years, 7 months ago CC:
chromium-reviews, MAD, jar (doing other things), jam, joi+watch-content_chromium.org, darin-cc_chromium.org, Ilya Sherman, SteveT, Alexei Svitkine (slow), vadimb Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionAdd histogram for image errors.
This CL adds a histogram for errors loading images. It will be
used to measure how changes impact image request responses.
BUG=169182
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197474
Patch Set 1 #
Total comments: 6
Patch Set 2 : Update to use SPARSE_SLOWLY #
Messages
Total messages: 16 (0 generated)
PTAL.
lgtm
https://codereview.chromium.org/14093027/diff/1/content/browser/loader/resour... File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/14093027/diff/1/content/browser/loader/resour... content/browser/loader/resource_dispatcher_host_impl.cc:764: kAllNetErrorCodes, arraysize(kAllNetErrorCodes))); Can you use a sparse histogram here? (The corresponding macro is UMA_HISTOGRAM_SPARSE_SLOWLY.)
https://codereview.chromium.org/14093027/diff/1/content/browser/loader/resour... File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/14093027/diff/1/content/browser/loader/resour... content/browser/loader/resource_dispatcher_host_impl.cc:764: kAllNetErrorCodes, arraysize(kAllNetErrorCodes))); +1 On 2013/04/26 23:59:10, Ilya Sherman wrote: > Can you use a sparse histogram here? (The corresponding macro is > UMA_HISTOGRAM_SPARSE_SLOWLY.)
https://codereview.chromium.org/14093027/diff/1/content/browser/loader/resour... File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/14093027/diff/1/content/browser/loader/resour... content/browser/loader/resource_dispatcher_host_impl.cc:764: kAllNetErrorCodes, arraysize(kAllNetErrorCodes))); On 2013/04/27 00:48:58, jar wrote: > +1 > > On 2013/04/26 23:59:10, Ilya Sherman wrote: > > Can you use a sparse histogram here? (The corresponding macro is > > UMA_HISTOGRAM_SPARSE_SLOWLY.) > If we're going to do that, we should update all of them in this file. I thought this one was okay because it matched the rest of the file.
https://codereview.chromium.org/14093027/diff/1/content/browser/loader/resour... File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/14093027/diff/1/content/browser/loader/resour... content/browser/loader/resource_dispatcher_host_impl.cc:764: kAllNetErrorCodes, arraysize(kAllNetErrorCodes))); SGTM The list has gotten long (so memory utilization is high), and this histogram *should* be rarely augmented (and when it is, it is dwarfed by the compute cost that got us here typically), so this "map and lock" based histogram is now a better choice. The good news is that existing histograms (with 1-wide buckets) should be completely compatible, so there is no need to change the names, or the histograms.xml file. On 2013/04/27 00:57:07, James Simonsen wrote: > On 2013/04/27 00:48:58, jar wrote: > > +1 > > > > On 2013/04/26 23:59:10, Ilya Sherman wrote: > > > Can you use a sparse histogram here? (The corresponding macro is > > > UMA_HISTOGRAM_SPARSE_SLOWLY.) > > > > If we're going to do that, we should update all of them in this file. I thought > this one was okay because it matched the rest of the file.
https://chromiumcodereview.appspot.com/14093027/diff/1/content/browser/loader... File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://chromiumcodereview.appspot.com/14093027/diff/1/content/browser/loader... content/browser/loader/resource_dispatcher_host_impl.cc:764: kAllNetErrorCodes, arraysize(kAllNetErrorCodes))); OK so IIUC the code here should be UMA_HISTOGRAM_SPARSE_SLOWLY("Net.ErrorCodesForImages", -loader->request()->status().error()); and the other CUSTOM_ENUMERATION macros should be updated similarly. Is that right? On 2013/04/27 01:00:53, jar wrote: > SGTM > > The list has gotten long (so memory utilization is high), and this histogram > *should* be rarely augmented (and when it is, it is dwarfed by the compute cost > that got us here typically), so this "map and lock" based histogram is now a > better choice. The good news is that existing histograms (with 1-wide buckets) > should be completely compatible, so there is no need to change the names, or the > histograms.xml file. > > > On 2013/04/27 00:57:07, James Simonsen wrote: > > On 2013/04/27 00:48:58, jar wrote: > > > +1 > > > > > > On 2013/04/26 23:59:10, Ilya Sherman wrote: > > > > Can you use a sparse histogram here? (The corresponding macro is > > > > UMA_HISTOGRAM_SPARSE_SLOWLY.) > > > > > > > If we're going to do that, we should update all of them in this file. I > thought > > this one was okay because it matched the rest of the file. >
https://chromiumcodereview.appspot.com/14093027/diff/1/content/browser/loader... File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://chromiumcodereview.appspot.com/14093027/diff/1/content/browser/loader... content/browser/loader/resource_dispatcher_host_impl.cc:764: kAllNetErrorCodes, arraysize(kAllNetErrorCodes))); On 2013/04/27 03:02:41, Stephen wrote: > OK so IIUC the code here should be > UMA_HISTOGRAM_SPARSE_SLOWLY("Net.ErrorCodesForImages", > -loader->request()->status().error()); and the other CUSTOM_ENUMERATION macros > should be updated similarly. Is that right? Assuming that the expression "-loader->request()->status().error()" gives the net error code, then yes :) > On 2013/04/27 01:00:53, jar wrote: > > SGTM > > > > The list has gotten long (so memory utilization is high), and this histogram > > *should* be rarely augmented (and when it is, it is dwarfed by the compute > cost > > that got us here typically), so this "map and lock" based histogram is now a > > better choice. The good news is that existing histograms (with 1-wide > buckets) > > should be completely compatible, so there is no need to change the names, or > the > > histograms.xml file. > > > > > > On 2013/04/27 00:57:07, James Simonsen wrote: > > > On 2013/04/27 00:48:58, jar wrote: > > > > +1 > > > > > > > > On 2013/04/26 23:59:10, Ilya Sherman wrote: > > > > > Can you use a sparse histogram here? (The corresponding macro is > > > > > UMA_HISTOGRAM_SPARSE_SLOWLY.) > > > > > > > > > > If we're going to do that, we should update all of them in this file. I > > thought > > > this one was okay because it matched the rest of the file. Yeah, sparse histograms are relatively new, so there's a lot of existing histograms like these that would be good to move over.
OK updated; please take another look.
still lgtm
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skonig@chromium.org/14093027/8001
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_p...
jar@ if you could take a look and LGTM the histograms.xml file change please. Thanks!
lgtm
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skonig@chromium.org/14093027/8001
Message was sent while issue was closed.
Change committed as 197474 |