Index: content/common/discardable_shared_memory_heap.h |
diff --git a/content/common/discardable_shared_memory_heap.h b/content/common/discardable_shared_memory_heap.h |
index 7ded677c3cc75630b61181c16a4b20258943550e..5e482a6e7f4402b1651b624b6eb16e2820b91a5f 100644 |
--- a/content/common/discardable_shared_memory_heap.h |
+++ b/content/common/discardable_shared_memory_heap.h |
@@ -94,6 +94,13 @@ class CONTENT_EXPORT DiscardableSharedMemoryHeap { |
uint64 tracing_process_id, |
int32 segment_id); |
+ // Returns a MemoryAllocatorDump for a given span on |pmd| with the size of |
+ // the span. |
+ base::trace_event::MemoryAllocatorDump* CreateMemoryAllocatorDump( |
+ Span* span, |
+ const char* name, |
+ base::trace_event::ProcessMemoryDump* pmd) const; |
+ |
private: |
class ScopedMemorySegment { |
public: |
@@ -107,6 +114,13 @@ class CONTENT_EXPORT DiscardableSharedMemoryHeap { |
bool IsUsed() const; |
bool IsResident() const; |
+ bool ContainsSpan(Span* span) const; |
+ |
+ base::trace_event::MemoryAllocatorDump* CreateMemoryAllocatorDump( |
+ Span* span, |
+ const char* name, |
+ base::trace_event::ProcessMemoryDump* pmd) const; |
+ |
// Used for dumping memory statistics from the segment to chrome://tracing. |
void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) const; |