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

Unified Diff: net/disk_cache/blockfile/stats.h

Issue 295913014: Disk cache: Remove stats_histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/blockfile/histogram_macros.h ('k') | net/disk_cache/blockfile/stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/stats.h
diff --git a/net/disk_cache/blockfile/stats.h b/net/disk_cache/blockfile/stats.h
index 4a62388007a4c23199f6472dbc6aa2c3e0a0ed11..8e1293d61d4b72ef76070638067fa9022d1533cc 100644
--- a/net/disk_cache/blockfile/stats.h
+++ b/net/disk_cache/blockfile/stats.h
@@ -10,7 +10,6 @@
#include "base/basictypes.h"
#include "net/disk_cache/blockfile/addr.h"
-#include "net/disk_cache/blockfile/stats_histogram.h"
namespace base {
class HistogramSamples;
@@ -83,19 +82,15 @@ class Stats {
// Returns the number of bytes copied.
int SerializeStats(void* data, int num_bytes, Addr* address);
- // Support for StatsHistograms. Together, these methods allow StatsHistograms
- // to take a snapshot of the data_sizes_ as the histogram data.
- int GetBucketRange(size_t i) const;
- void Snapshot(base::HistogramSamples* samples) const;
-
private:
+ // Supports generation of SizeStats histogram data.
+ int GetBucketRange(size_t i) const;
int GetStatsBucket(int32 size);
int GetRatio(Counters hit, Counters miss) const;
Addr storage_addr_;
int data_sizes_[kDataSizesLength];
int64 counters_[MAX_COUNTER];
- StatsHistogram* size_histogram_;
DISALLOW_COPY_AND_ASSIGN(Stats);
};
« no previous file with comments | « net/disk_cache/blockfile/histogram_macros.h ('k') | net/disk_cache/blockfile/stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698