Index: base/memory/discardable_shared_memory.h |
diff --git a/base/memory/discardable_shared_memory.h b/base/memory/discardable_shared_memory.h |
index 74bbe8e95f427ba347d696e6c6e9c408e166e167..83c128af532def6d6ba9488dba6f440b5a2135f4 100644 |
--- a/base/memory/discardable_shared_memory.h |
+++ b/base/memory/discardable_shared_memory.h |
@@ -29,6 +29,13 @@ namespace base { |
// access to an instance of this class. |
class BASE_EXPORT DiscardableSharedMemory { |
public: |
+ // Used by other allocators to expess sub-allocation from discardable memory |
+ // heap for tracing. To expess any suballocation, the dump providers need to |
+ // create a sub-allocation edge from this node. |
+ // E.g.: ProcessMemoryDump::AddSuballocation(skia_dump_guid, |
+ // kAllocatedObjectsDumpName); |
+ static const char kAllocatedObjectsDumpName[]; |
reveman
2015/07/29 18:32:11
I don't think we want this here. We shouldn't assu
ssid
2015/07/29 19:36:22
Do you think DiscardableMemoryAllocator is a bette
reveman
2015/07/30 16:00:59
Yes, DiscardableMemoryAllocator is better. That na
ssid
2015/07/30 20:05:15
Thanks I din't know this existed.
|
+ |
enum LockResult { SUCCESS, PURGED, FAILED }; |
DiscardableSharedMemory(); |