summaryrefslogtreecommitdiffstats
path: root/base/metrics
diff options
context:
space:
mode:
authorrogerm@chromium.org <rogerm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-13 17:30:07 +0000
committerrogerm@chromium.org <rogerm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-13 17:30:07 +0000
commitbffce7c3eea6054b62df79bb36f89ff2b6fc68a4 (patch)
treebfeb50f084b4a2c32d4f40c7be72f41f1fae45d8 /base/metrics
parent9f19d5c7ddfe7ddd5c64fe8ab6ac67fc9782200d (diff)
downloadchromium_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.h6
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, \