summaryrefslogtreecommitdiffstats
path: root/base/tracked_objects.h
diff options
context:
space:
mode:
authorvadimt <vadimt@chromium.org>2014-11-06 14:27:43 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-06 22:27:57 +0000
commita156831d7f339c46779ad68f03eaca8f6b433f65 (patch)
tree35ab294daa7242069752c0e57bb9075ef05d10ff /base/tracked_objects.h
parent6c8e7e9125f05406fefe48718c5d251825277277 (diff)
downloadchromium_src-a156831d7f339c46779ad68f03eaca8f6b433f65.zip
chromium_src-a156831d7f339c46779ad68f03eaca8f6b433f65.tar.gz
chromium_src-a156831d7f339c46779ad68f03eaca8f6b433f65.tar.bz2
Enable profiler timing with a field trial.
In Browser process, if profiler timing field trial is "Enabled", enable profiler timing. This is necessary to measure the performance impact of enabling profiler timing on Android, and, perhaps, rolling out profiler timing enabling afterwards. Profiler timing is currently disabled on Android because of performance concerns, but the impact on the standard perf metricts is not yet known, hence this CL. BUG=315070 Review URL: https://codereview.chromium.org/693103005 Cr-Commit-Position: refs/heads/master@{#303100}
Diffstat (limited to 'base/tracked_objects.h')
-rw-r--r--base/tracked_objects.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/tracked_objects.h b/base/tracked_objects.h
index 222f581..50bea47 100644
--- a/base/tracked_objects.h
+++ b/base/tracked_objects.h
@@ -466,6 +466,9 @@ class BASE_EXPORT ThreadData {
// relationships can be (optionally) calculated.
static void PrepareForStartOfRun(const Births* parent);
+ // Enables profiler timing.
+ static void EnableProfilerTiming();
+
// Provide a time function that does nothing (runs fast) when we don't have
// the profiler enabled. It will generally be optimized away when it is
// ifdef'ed to be small enough (allowing the profiler to be "compiled out" of