diff options
author | rogerm@chromium.org <rogerm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-13 17:30:07 +0000 |
---|---|---|
committer | rogerm@chromium.org <rogerm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-13 17:30:07 +0000 |
commit | bffce7c3eea6054b62df79bb36f89ff2b6fc68a4 (patch) | |
tree | bfeb50f084b4a2c32d4f40c7be72f41f1fae45d8 /base/metrics | |
parent | 9f19d5c7ddfe7ddd5c64fe8ab6ac67fc9782200d (diff) | |
download | chromium_src-bffce7c3eea6054b62df79bb36f89ff2b6fc68a4.zip chromium_src-bffce7c3eea6054b62df79bb36f89ff2b6fc68a4.tar.gz chromium_src-bffce7c3eea6054b62df79bb36f89ff2b6fc68a4.tar.bz2 |
Re-enable pre-read experiment as a finch field trial.
This CL revives an expired pre-read experiment as a Finch field trial. About 2 months ago the expired experiment, and its fallback behaviour, were removed and there was a subsequent performance regression.
R=cpu, asvitkine
BUG=245435, 280721
Review URL: https://chromiumcodereview.appspot.com/23534009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/metrics')
-rw-r--r-- | base/metrics/histogram.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/metrics/histogram.h b/base/metrics/histogram.h index d82f90aa..f2566ca 100644 --- a/base/metrics/histogram.h +++ b/base/metrics/histogram.h @@ -307,6 +307,12 @@ class Lock; name, sample, base::TimeDelta::FromMilliseconds(1), \ base::TimeDelta::FromHours(1), 50) +// Use this macro when times can routinely be much longer than 10 seconds and +// you want 100 buckets. +#define UMA_HISTOGRAM_LONG_TIMES_100(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \ + name, sample, base::TimeDelta::FromMilliseconds(1), \ + base::TimeDelta::FromHours(1), 100) + #define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ STATIC_HISTOGRAM_POINTER_BLOCK(name, AddTime(sample), \ base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \ |