summaryrefslogtreecommitdiffstats
path: root/logd/LogBufferElement.h
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-04-13 14:24:45 -0700
committerMark Salyzyn <salyzyn@google.com>2015-05-07 10:01:39 -0700
commit8b22c293a0e53ef56734fc5f278d75529419a432 (patch)
tree2aa6ec998739b0af393a2a43dcc77fb54b91b6ab /logd/LogBufferElement.h
parent8bd4a4ecdc48ead03ca4e90ad585324bcd63b9f0 (diff)
downloadsystem_core-8b22c293a0e53ef56734fc5f278d75529419a432.zip
system_core-8b22c293a0e53ef56734fc5f278d75529419a432.tar.gz
system_core-8b22c293a0e53ef56734fc5f278d75529419a432.tar.bz2
logd: class hierarcy for Uid and Pid statistics.
(Cherry pick from commit 81b3eabc49736b89c4f99940f79785074955eaa5) Add EntryBase and EntryBaseDropped base classes for statistical entries to inherit from. Abstract add(), subtract() and drop() methods to common LogBufferElement in each for entry policy decisions. Some move of details out of LogStatistics.cpp and place them into LogStatistics.h. Add statistical add(), subtract() and drop() methods to hash table to call entries for policy. Bug: 19608965 Change-Id: Ib8a33a8fe28871ef165d1632c6546a5c606231e8
Diffstat (limited to 'logd/LogBufferElement.h')
-rw-r--r--logd/LogBufferElement.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/logd/LogBufferElement.h b/logd/LogBufferElement.h
index 059c031..b6c6196 100644
--- a/logd/LogBufferElement.h
+++ b/logd/LogBufferElement.h
@@ -25,6 +25,9 @@
#include <log/log.h>
#include <log/log_read.h>
+// Hijack this header as a common include file used by most all sources
+// to report some utilities defined here and there.
+
namespace android {
// Furnished in main.cpp. Caller must own and free returned value