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() |