logd: disable worst uid prune for events buffer
There is some usage statistics that would be hurt by pruning by UID,
since _all_ usage statistics come from system_server. In other words
we expect it to be chatty. Until we formulate and evaluate a better
(eg: per-tag?) filtration mechanism, lets hold off pruning by UID.
Bug: 19608965
Change-Id: Iddd45a671e13bdcf3394c20919ad1f2e4ef36616
diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp
index e0b8fd8..40fbfae 100644
--- a/logd/LogStatistics.cpp
+++ b/logd/LogStatistics.cpp
@@ -340,7 +340,7 @@
android::String8 name("UID");
android::String8 size("Size");
android::String8 pruned("Pruned");
- if (id == LOG_ID_CRASH) {
+ if (!worstUidEnabledForLogid(id)) {
pruned.setTo("");
}
format_line(output, name, size, pruned);