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

Unified Diff: base/memory/discardable_shared_memory.cc

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: addresssing 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
Index: base/memory/discardable_shared_memory.cc
diff --git a/base/memory/discardable_shared_memory.cc b/base/memory/discardable_shared_memory.cc
index 0f85c1fe903d612ecf055043c1a0d84d362ddbf7..bd11c8ac553e32482bc0a77b2aab0bcd40364c3b 100644
--- a/base/memory/discardable_shared_memory.cc
+++ b/base/memory/discardable_shared_memory.cc
@@ -97,6 +97,10 @@ size_t AlignToPageSize(size_t size) {
} // namespace
+// static
+const char DiscardableSharedMemory::kAllocatedObjectsDumpName[] =
+ "discardable/allocated_objects";
+
DiscardableSharedMemory::DiscardableSharedMemory()
: mapped_size_(0), locked_page_count_(0) {
}

Powered by Google App Engine
This is Rietveld 408576698