summaryrefslogtreecommitdiffstats
path: root/base/profiler.h
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 23:07:52 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 23:07:52 +0000
commitc5d7f32f2fdae32e4ebf5c67b02026eefecc17b2 (patch)
tree85cce8731ba57fc701e3d49b1b9a9f1b2304eeb6 /base/profiler.h
parent9165f748223f75790fb7f504de538b3003c27e4f (diff)
downloadchromium_src-c5d7f32f2fdae32e4ebf5c67b02026eefecc17b2.zip
chromium_src-c5d7f32f2fdae32e4ebf5c67b02026eefecc17b2.tar.gz
chromium_src-c5d7f32f2fdae32e4ebf5c67b02026eefecc17b2.tar.bz2
Support controlling the TCMalloc CPU profiler from script in test_shell
Review URL: http://codereview.chromium.org/607008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/profiler.h')
-rw-r--r--base/profiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/profiler.h b/base/profiler.h
index 8a6cce8..4fd1117 100644
--- a/base/profiler.h
+++ b/base/profiler.h
@@ -26,6 +26,9 @@ class Profiler {
// time in application startup.
static void ClearData();
+ // Flushes all recorded data to disk. No-op until recording is started.
+ static void Flush();
+
// Sets the name of the current thread for display in the profiler's UI.
static void SetThreadName(const char *name);