summaryrefslogtreecommitdiff
path: root/libs/hwui/Caches.cpp
diff options
context:
space:
mode:
author sergeyv <sergeyv@google.com> 2016-09-13 02:01:28 +0000
committer android-build-merger <android-build-merger@google.com> 2016-09-13 02:01:28 +0000
commit0ec2fd7bc5f3c57f7783425608732d2f95f53c4a (patch)
tree2877516239d17e2497c7bcceb12f1179f91819cc /libs/hwui/Caches.cpp
parentee6aca55bd4d0e785823c672c557af5c477d5058 (diff)
parent42c01cf62fec651ca5f9dd4db9ac7c6c2e3fce8d (diff)
HWUI: track upload & recent usage in font cache am: af102bee51
am: 42c01cf62f Change-Id: Ieb80108d520aa629c54a40d7c533bf74a71849c4
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r--libs/hwui/Caches.cpp7
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
}
///////////////////////////////////////////////////////////////////////////////