diff options
Diffstat (limited to 'logd/LogBuffer.h')
-rw-r--r-- | logd/LogBuffer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/logd/LogBuffer.h b/logd/LogBuffer.h index cbbb2ce3e..c3460cadf 100644 --- a/logd/LogBuffer.h +++ b/logd/LogBuffer.h @@ -36,6 +36,8 @@ class LogBuffer { LogStatistics stats; + bool dgram_qlen_statistics; + #ifdef USERDEBUG_BUILD PruneList mPrune; @@ -64,6 +66,11 @@ public: // *strp uses malloc, use free to release. void formatStatistics(char **strp, uid_t uid, unsigned int logMask); + void enableDgramQlenStatistics() { + stats.enableDgramQlenStatistics(); + dgram_qlen_statistics = true; + } + #ifdef USERDEBUG_BUILD int initPrune(char *cp) { return mPrune.init(cp); } // *strp uses malloc, use free to release. |