Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h

Issue 12212157: Get a filename of dumped heap profile in a V8 extension HeapProfilerDump(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
diff --git a/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h b/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
index 8e3ee962c7126c9f582c022033b95cd71953902e..2bb0a311e5655ba5147cc476c3422dbdd61e924b 100644
--- a/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
+++ b/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
@@ -90,6 +90,14 @@ PERFTOOLS_DLL_DECL void HeapProfilerStop();
*/
PERFTOOLS_DLL_DECL void HeapProfilerDump(const char *reason);
+/* Dump a profile now and store the filename where the profile is dumped to
+ * in addition to HeapProfilerDump().
+ */
+PERFTOOLS_DLL_DECL void HeapProfilerDumpWithFileName(
+ const char *reason,
+ char* dumped_filename_buffer,
+ int filename_buffer_length);
Dai Mikurube (NOT FULLTIME) 2013/02/13 16:04:46 FYI, |dumped_filename_buffer| is output of this fu
+
/* Generate current heap profiling information.
* Returns an empty string when heap profiling is not active.
* The returned pointer is a '\0'-terminated string allocated using malloc()
« no previous file with comments | « content/renderer/memory_benchmarking_extension.cc ('k') | third_party/tcmalloc/chromium/src/heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698