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

Unified Diff: base/memory/discardable_memory_allocator.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: Removing segment dump from base. 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_memory_allocator.cc
diff --git a/base/memory/discardable_memory_allocator.cc b/base/memory/discardable_memory_allocator.cc
index 002a3ba5e4763c360dc0a96861d0c53758bdb3bc..0b163d68cb94729a62592da19fc5aacb2a88e33e 100644
--- a/base/memory/discardable_memory_allocator.cc
+++ b/base/memory/discardable_memory_allocator.cc
@@ -5,6 +5,8 @@
#include "base/memory/discardable_memory_allocator.h"
#include "base/logging.h"
+#include "base/trace_event/memory_allocator_dump.h"
+#include "base/trace_event/process_memory_dump.h"
namespace base {
namespace {
@@ -31,4 +33,9 @@ DiscardableMemoryAllocator* DiscardableMemoryAllocator::GetInstance() {
return g_allocator;
}
+// static
+const char* DiscardableMemoryAllocator::GetMemoryPoolNameForTracing() {
+ return "discardable/allocated_objects";
+}
+
} // namespace base
« no previous file with comments | « base/memory/discardable_memory_allocator.h ('k') | content/child/child_discardable_shared_memory_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698