Chromium Code Reviews| Index: public/platform/WebProcessMemoryDump.h |
| diff --git a/public/platform/WebProcessMemoryDump.h b/public/platform/WebProcessMemoryDump.h |
| index bbc5b83e7e6b6cdfa8cc9a38b4bfc8a3d4dd312c..46be4b18a002fdb7f841024ffe590de1c4b0c8c3 100644 |
| --- a/public/platform/WebProcessMemoryDump.h |
| +++ b/public/platform/WebProcessMemoryDump.h |
| @@ -7,11 +7,10 @@ |
| #include "WebCommon.h" |
| #include "WebString.h" |
| +#include "public/platform/WebMemoryAllocatorDump.h" |
| namespace blink { |
| -class WebMemoryAllocatorDump; |
| - |
| // A container which holds all the dumps for the various allocators for a given |
| // process. Embedders of WebMemoryDumpProvider are expected to populate a |
| // WebProcessMemoryDump instance with the stats of their allocators. |
| @@ -43,6 +42,20 @@ public: |
| virtual void takeAllDumpsFrom(WebProcessMemoryDump* other) |
| { |
| } |
| + |
| + // Adds an ownership relationship between two MemoryAllocatorDump(s) with |
| + // the semantics: |source| owns |target|, and has the effect of attributing |
| + // the memory usage of |target| to |source|. |importance| is optional and |
| + // relevant only for the cases of co-ownership, where it acts as a z-index: |
| + // the owner with the highest importance will be attributed |target|'s |
| + // memory. |
| + virtual void AddOwnershipEdge(WebMemoryAllocatorDumpGuid source, WebMemoryAllocatorDumpGuid target, int importance) |
|
Primiano Tucci (use gerrit)
2015/05/29 11:24:53
const WMADG& source (and target)
ssid
2015/05/29 15:50:48
Done.
|
| + { |
| + } |
| + |
| + virtual void AddOwnershipEdge(WebMemoryAllocatorDumpGuid source, WebMemoryAllocatorDumpGuid target) |
| + { |
| + } |
| }; |
| } // namespace blink |