summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_format.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 21:49:00 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 21:49:00 +0000
commit97ac07d0ffcca8e53812577472d62d76ae862d7b (patch)
tree00dc361586c14cb572a6aa3194758fb8b0fec059 /net/disk_cache/disk_format.h
parent8e261756c62de3737c5dc9b9418857e2b58a7618 (diff)
downloadchromium_src-97ac07d0ffcca8e53812577472d62d76ae862d7b.zip
chromium_src-97ac07d0ffcca8e53812577472d62d76ae862d7b.tar.gz
chromium_src-97ac07d0ffcca8e53812577472d62d76ae862d7b.tar.bz2
Disk cache: More instrumentation for the cache.
Now we separate data between before and after the cache is full. Also, reduce the rate at which a particular client sends data to be only once a week. The effect is that the histogram data will only have one value per client, and the same client will not be "voting" on more than one version (release) at the same time. Review URL: http://codereview.chromium.org/50063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_format.h')
-rw-r--r--net/disk_cache/disk_format.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/disk_cache/disk_format.h b/net/disk_cache/disk_format.h
index eced8e3..1d5dcd7 100644
--- a/net/disk_cache/disk_format.h
+++ b/net/disk_cache/disk_format.h
@@ -66,7 +66,8 @@ const uint32 kIndexMagic = 0xC103CAC3;
const uint32 kCurrentVersion = 0x20000; // Version 2.0.
struct LruData {
- int32 pad1[3];
+ int32 pad1[2];
+ int32 filled; // Flag to tell when we filled the cache.
int32 sizes[5];
CacheAddr heads[5];
CacheAddr tails[5];
@@ -88,7 +89,8 @@ struct IndexHeader {
int32 table_len; // Actual size of the table (0 == kIndexTablesize).
int32 crash; // Signals a previous crash.
int32 experiment; // Id of an ongoing test.
- int32 pad[54];
+ uint64 create_time; // Creation time for this set of files.
+ int32 pad[52];
LruData lru; // Eviction control data.
IndexHeader() {
memset(this, 0, sizeof(*this));