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

Issue 295913014: Disk cache: Remove stats_histogram. (Closed)

Created:
6 years, 7 months ago by rvargas (doing something else)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Disk cache: Remove stats_histogram. StatsHistograms is the only "external" subclass of base::Histogram and as such it often requires extra considerations when modifying the base class. On the other hand, almost the same data can be gathered by using a regular log histogram with a specific range. This CL does that, generating a 75 bucket histogram to map the 27 buckets from the original data. Most of the buckets will be empty, and a couple of buckets will be merged on the new histogram, but the compromise looks good enough. BUG=377936 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273074

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review comments #

Total comments: 2

Patch Set 3 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -183 lines) Patch
M net/disk_cache/blockfile/histogram_macros.h View 1 chunk +2 lines, -0 lines 0 comments Download
M net/disk_cache/blockfile/stats.h View 2 chunks +2 lines, -7 lines 0 comments Download
M net/disk_cache/blockfile/stats.cc View 1 4 chunks +29 lines, -22 lines 0 comments Download
D net/disk_cache/blockfile/stats_histogram.h View 1 chunk +0 lines, -58 lines 0 comments Download
D net/disk_cache/blockfile/stats_histogram.cc View 1 chunk +0 lines, -94 lines 0 comments Download
M net/net.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
rvargas (doing something else)
I went through the data again and concluded that it generally works and provides valuable ...
6 years, 6 months ago (2014-05-27 18:36:27 UTC) #1
Alexei Svitkine (slow)
Thanks! This looks like a sufficiently large change that it makes sense to have a ...
6 years, 6 months ago (2014-05-27 18:59:46 UTC) #2
rvargas (doing something else)
Thanks! Please take another look. https://codereview.chromium.org/295913014/diff/1/net/disk_cache/blockfile/stats.cc File net/disk_cache/blockfile/stats.cc (right): https://codereview.chromium.org/295913014/diff/1/net/disk_cache/blockfile/stats.cc#newcode129 net/disk_cache/blockfile/stats.cc:129: if (!first_time) The logic ...
6 years, 6 months ago (2014-05-27 19:36:38 UTC) #3
Alexei Svitkine (slow)
LGTM, thanks https://codereview.chromium.org/295913014/diff/10001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/295913014/diff/10001/tools/metrics/histograms/histograms.xml#newcode3376 tools/metrics/histograms/histograms.xml:3376: + <summary>The size distribution of data stored ...
6 years, 6 months ago (2014-05-27 19:39:16 UTC) #4
rvargas (doing something else)
Thanks again. https://codereview.chromium.org/295913014/diff/10001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/295913014/diff/10001/tools/metrics/histograms/histograms.xml#newcode3376 tools/metrics/histograms/histograms.xml:3376: + <summary>The size distribution of data stored ...
6 years, 6 months ago (2014-05-27 19:42:37 UTC) #5
rvargas (doing something else)
The CQ bit was checked by rvargas@chromium.org
6 years, 6 months ago (2014-05-27 19:42:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/295913014/30001
6 years, 6 months ago (2014-05-27 19:43:58 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-05-27 23:49:42 UTC) #8
Message was sent while issue was closed.
Change committed as 273074

Powered by Google App Engine
This is Rietveld 408576698