diff options
author | primiano <primiano@chromium.org> | 2015-05-29 06:55:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-29 13:56:10 +0000 |
commit | 673eda698a02bbc74c07b790e52eb5185a693bde (patch) | |
tree | 0b95932eafc08796a98573c2a262391603914174 /base/trace_event/process_memory_dump.h | |
parent | 9156b16dac27cb5850a0d8f23a6aefd6f0e860d2 (diff) | |
download | chromium_src-673eda698a02bbc74c07b790e52eb5185a693bde.zip chromium_src-673eda698a02bbc74c07b790e52eb5185a693bde.tar.gz chromium_src-673eda698a02bbc74c07b790e52eb5185a693bde.tar.bz2 |
[tracing] Add guid overload to CreateAllocatorDump
Small follow-up to crrev.com/1161813004 which forgot
to add the overloaded ctor.
BUG=492102
Review URL: https://codereview.chromium.org/1157433005
Cr-Commit-Position: refs/heads/master@{#331962}
Diffstat (limited to 'base/trace_event/process_memory_dump.h')
-rw-r--r-- | base/trace_event/process_memory_dump.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/trace_event/process_memory_dump.h b/base/trace_event/process_memory_dump.h index 55d7871..7b1434b 100644 --- a/base/trace_event/process_memory_dump.h +++ b/base/trace_event/process_memory_dump.h @@ -78,8 +78,13 @@ class BASE_EXPORT ProcessMemoryDump { // by this provider. It is possible to specify nesting by using a // path-like string (e.g., v8/isolate1/heap1, v8/isolate1/heap2). // Leading or trailing slashes are not allowed. + // guid: an optional identifier, unique among all processes within the + // scope of a global dump. This is only relevant when using + // AddOwnershipEdge(). If omitted, it will be automatically generated. // ProcessMemoryDump handles the memory ownership of its MemoryAllocatorDumps. MemoryAllocatorDump* CreateAllocatorDump(const std::string& absolute_name); + MemoryAllocatorDump* CreateAllocatorDump(const std::string& absolute_name, + const MemoryAllocatorDumpGuid& guid); // Looks up a MemoryAllocatorDump given its allocator and heap names, or // nullptr if not found. @@ -108,6 +113,8 @@ class BASE_EXPORT ProcessMemoryDump { } private: + void AddAllocatorDumpInternal(MemoryAllocatorDump* mad); + ProcessMemoryTotals process_totals_; bool has_process_totals_; |