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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontCache.cpp

Issue 2123193002: Add GlyphMetricsMap memory consumption to memory-infra tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/platform/fonts/FontCache.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontCache.cpp b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
index 3a7a8db2b36ae38f15abb6e66edf6d4b82c66917..1e19052f78041f32055a032408279387856d280d 100644
--- a/third_party/WebKit/Source/platform/fonts/FontCache.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
@@ -393,6 +393,14 @@ void FontCache::dumpFontPlatformDataCache(base::trace_event::ProcessMemoryDump*
memoryDump->AddSuballocation(dump->guid(), WTF::Partitions::kAllocatedObjectPoolName);
}
+void FontCache::dumpFontDataCache(base::trace_event::ProcessMemoryDump* memoryDump)
+{
+ DCHECK(isMainThread());
+ if (!gFontDataCache)
+ return;
+ gFontDataCache->dumpCountAndGlyphToBoundsMaps(memoryDump);
+}
+
void FontCache::dumpShapeResultCache(base::trace_event::ProcessMemoryDump* memoryDump)
{
ASSERT(isMainThread());

Powered by Google App Engine
This is Rietveld 408576698