summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/README.chromium
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-24 18:38:29 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-24 18:38:29 +0000
commit111494e2d84d16764a5a6b1f70c096932ead454e (patch)
tree5a81c9ba1236b2801305e7865094e0749e1f2cd4 /third_party/tcmalloc/README.chromium
parentb544c1ae28772fc1392a815af620433d59293363 (diff)
downloadchromium_src-111494e2d84d16764a5a6b1f70c096932ead454e.zip
chromium_src-111494e2d84d16764a5a6b1f70c096932ead454e.tar.gz
chromium_src-111494e2d84d16764a5a6b1f70c096932ead454e.tar.bz2
Record Chrome trace events in tcmalloc heap profiles
This allows about:tracing to show tcmalloc heap memory allocation over time. The implementation: * Adds a "memory" checkbox to about:tracing * Uses thread-local-storage to store the "stack" of trace events per thread while about:tracing is running. * Introduces a StackGeneratorFunction callback into tcmalloc, allowing it to call back into Chrome to get a "stack" of trace events. * Parses the heap profiler output of tcmalloc and converts it to JSON to be displayed by a visualizer in the about:tracing trace viewer. BUG=243895 TEST=base_unittests TraceMemoryTest.* Review URL: https://chromiumcodereview.appspot.com/15418002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/tcmalloc/README.chromium')
-rw-r--r--third_party/tcmalloc/README.chromium2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/tcmalloc/README.chromium b/third_party/tcmalloc/README.chromium
index 9da19ca..0682e8d 100644
--- a/third_party/tcmalloc/README.chromium
+++ b/third_party/tcmalloc/README.chromium
@@ -89,3 +89,5 @@ Modifications:
- Added support for android.
- Use NULL instead of static_cast<uintptr_t>(0) in stack_trace_table.cc,
for -std=c++11 compatibility.
+- Added support for pseudo-stack heap profiling via a callback to retrieve a
+ simulated stack from the embedding application.