diff options
author | nhiroki <nhiroki@chromium.org> | 2015-06-17 04:45:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-17 11:46:04 +0000 |
commit | d1c9f9fbe26992894355b68f0445e03c2061908f (patch) | |
tree | 3eb46c395ab603891d3b6cfd2e334e5d86378b0d /base/metrics | |
parent | 8312009fd0fe42534b7c9eccedf4c34297e37d21 (diff) | |
download | chromium_src-d1c9f9fbe26992894355b68f0445e03c2061908f.zip chromium_src-d1c9f9fbe26992894355b68f0445e03c2061908f.tar.gz chromium_src-d1c9f9fbe26992894355b68f0445e03c2061908f.tar.bz2 |
ServiceWorker: Migrate the script cache backend from BlockFile to Simple
This CL switches the backend of ServiceWorkerDiskCache from BlockFile to Simple,
and migrates cached resources before initializing the diskcache.
* DiskCache migration consists of 2 parts:
1) Copying contents into a new diskcache. This should be complete before
starting diskcache initialization.
2) Lazily removing an old diskcache after migration is complete.
* These migration states are recorded in ServiceWorkerDatabase. If migration
is aborted in the middle of the execution, the retry will happen on the next
initialization.
* If migration fails, DeleteAndStartOver runs and creates a new storage.
BUG=487482
TEST=content_unittests --gtest_filter=ServiceWorker*
TEST=content_browsertests --gtest_filter=ServiceWorker*
TEST=manual (run Chromium with an old diskcache and make sure migration correctly happens)
Review URL: https://codereview.chromium.org/1152543002
Cr-Commit-Position: refs/heads/master@{#334811}
Diffstat (limited to 'base/metrics')
-rw-r--r-- | base/metrics/histogram_macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/metrics/histogram_macros.h b/base/metrics/histogram_macros.h index 2aee1a5..988e942 100644 --- a/base/metrics/histogram_macros.h +++ b/base/metrics/histogram_macros.h @@ -189,6 +189,9 @@ #define UMA_HISTOGRAM_COUNTS_100(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \ name, sample, 1, 100, 50) +#define UMA_HISTOGRAM_COUNTS_1000(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \ + name, sample, 1, 1000, 50) + #define UMA_HISTOGRAM_COUNTS_10000(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \ name, sample, 1, 10000, 50) |