summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/chromium/src/google/heap-profiler.h
diff options
context:
space:
mode:
authorglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-24 09:53:31 +0000
committerglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-24 09:53:31 +0000
commitd06e455c161c0e52849a0f85581947f6f20cf8de (patch)
tree716b29f0a098588b1bb177a010708c87f704ddf4 /third_party/tcmalloc/chromium/src/google/heap-profiler.h
parent779f0af5c653dfc83cb831ebbfead8dd0344fbc1 (diff)
downloadchromium_src-d06e455c161c0e52849a0f85581947f6f20cf8de.zip
chromium_src-d06e455c161c0e52849a0f85581947f6f20cf8de.tar.gz
chromium_src-d06e455c161c0e52849a0f85581947f6f20cf8de.tar.bz2
Re-land http://codereview.chromium.org/1735024/show to assess the performance.
TBR=antonm,willchan Review URL: http://codereview.chromium.org/2164001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/tcmalloc/chromium/src/google/heap-profiler.h')
-rw-r--r--third_party/tcmalloc/chromium/src/google/heap-profiler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/tcmalloc/chromium/src/google/heap-profiler.h b/third_party/tcmalloc/chromium/src/google/heap-profiler.h
index 5efaf64..57cb97a 100644
--- a/third_party/tcmalloc/chromium/src/google/heap-profiler.h
+++ b/third_party/tcmalloc/chromium/src/google/heap-profiler.h
@@ -71,12 +71,13 @@ extern "C" {
*/
PERFTOOLS_DLL_DECL void HeapProfilerStart(const char* prefix);
-/* Returns true if we are currently profiling the heap. This is true
+/* Returns non-zero if we are currently profiling the heap. (Returns
+ * an int rather than a bool so it's usable from C.) This is true
* between calls to HeapProfilerStart() and HeapProfilerStop(), and
* also if the program has been run with HEAPPROFILER, or some other
* way to turn on whole-program profiling.
*/
-bool IsHeapProfilerRunning();
+int IsHeapProfilerRunning();
/* Stop heap profiling. Can be restarted again with HeapProfilerStart(),
* but the currently accumulated profiling information will be cleared.