Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2020)

Unified Diff: base/memory/discardable_shared_memory.h

Issue 1259333003: [tracing] Add SkResourceCache as suballocation to avoid double counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@skia_v1
Patch Set: Fixing comments. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/memory/discardable_shared_memory.cc » ('j') | base/memory/discardable_shared_memory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | base/memory/discardable_shared_memory.cc » ('j') | base/memory/discardable_shared_memory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698