summaryrefslogtreecommitdiffstats
path: root/logd/LogBuffer.h
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-09-21 14:22:18 -0700
committerMark Salyzyn <salyzyn@google.com>2014-10-06 22:42:47 +0000
commitf5fc50958978fc039bc3207cbfcb140a277442eb (patch)
tree8dd2592320054cd415dffb24d841720f3796054d /logd/LogBuffer.h
parente72c6e43668c8c6e1af77e2e5038557581cbf148 (diff)
downloadsystem_core-f5fc50958978fc039bc3207cbfcb140a277442eb.zip
system_core-f5fc50958978fc039bc3207cbfcb140a277442eb.tar.gz
system_core-f5fc50958978fc039bc3207cbfcb140a277442eb.tar.bz2
logd: Add control statistics enable/disable.
- ro.build.type=user turn off statistics - ro.config.low_ram=true turn off statistics - logd.statistics override Bug: 17526159 Bug: 17526187 Change-Id: I74796043ac34753c6dd10018719ebc0bcd94e00f
Diffstat (limited to 'logd/LogBuffer.h')
-rw-r--r--logd/LogBuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/logd/LogBuffer.h b/logd/LogBuffer.h
index 91175e0..879baea 100644
--- a/logd/LogBuffer.h
+++ b/logd/LogBuffer.h
@@ -68,6 +68,10 @@ public:
dgramQlenStatistics = true;
}
+ void enableStatistics() {
+ stats.enableStatistics();
+ }
+
int initPrune(char *cp) { return mPrune.init(cp); }
// *strp uses malloc, use free to release.
void formatPrune(char **strp) { mPrune.format(strp); }