diff options
author | 2016-09-13 01:54:15 +0000 | |
---|---|---|
committer | 2016-09-13 01:54:15 +0000 | |
commit | 42c01cf62fec651ca5f9dd4db9ac7c6c2e3fce8d (patch) | |
tree | 441bfa8a9f51ac16c5175d33fdc56d7b81c42eb6 /libs/hwui/Caches.cpp | |
parent | c60abfb739aed2489cc01f738e0784ebcb47b11b (diff) | |
parent | af102bee518191f1e6ad843f06dcd7a64611462d (diff) |
HWUI: track upload & recent usage in font cache
am: af102bee51
Change-Id: I2c08fc8d81ce8e0a1442cb65cfec11c1981a1768
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r-- | libs/hwui/Caches.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp index 6d28c5294911..a8ced9b2597b 100644 --- a/libs/hwui/Caches.cpp +++ b/libs/hwui/Caches.cpp @@ -21,6 +21,9 @@ #include "Properties.h" #include "renderstate/RenderState.h" #include "ShadowTessellator.h" +#ifdef BUGREPORT_FONT_CACHE_USAGE +#include "font/FontCacheHistoryTracker.h" +#endif #include "utils/GLUtils.h" #include <cutils/properties.h> @@ -212,6 +215,10 @@ void Caches::dumpMemoryUsage(String8 &log) { log.appendFormat("Total memory usage:\n"); log.appendFormat(" %d bytes, %.2f MB\n", total, total / 1024.0f / 1024.0f); + +#ifdef BUGREPORT_FONT_CACHE_USAGE + fontRenderer.getFontRenderer().historyTracker().dump(log); +#endif } /////////////////////////////////////////////////////////////////////////////// |