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

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: addressed the comments 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..a2fe805e9199e3193bb809334ad9f5ee92d9bd6d 100644
--- a/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
+++ b/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
@@ -90,6 +90,15 @@ PERFTOOLS_DLL_DECL void HeapProfilerStop();
*/
PERFTOOLS_DLL_DECL void HeapProfilerDump(const char *reason);
+/* Dump a profile to a file now and store the dumped filename to
+ * "dumped_filename_buffer" which has a length of "filename_buffer_length"
+ * in addition to HeapProfilerDump().
+ */
+PERFTOOLS_DLL_DECL void HeapProfilerDumpWithFileName(
+ const char *reason,
+ char* dumped_filename_buffer,
+ int filename_buffer_length);
+
/* 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