summaryrefslogtreecommitdiffstats
path: root/include/utils/Looper.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-05-30 19:17:47 -0700
committerAlex Ray <aray@google.com>2013-07-30 13:56:59 -0700
commit55195d745c6a21f8a75f26716f2a9690e40a1331 (patch)
tree0ee3a9ae5e67a108c99a7fcc5e3bd07567aa4093 /include/utils/Looper.h
parent03b168a69bd155be2675d7dffa342a30990259f7 (diff)
downloadsystem_core-55195d745c6a21f8a75f26716f2a9690e40a1331.zip
system_core-55195d745c6a21f8a75f26716f2a9690e40a1331.tar.gz
system_core-55195d745c6a21f8a75f26716f2a9690e40a1331.tar.bz2
Remove unused statistics code.
Bug: 6559630 Change-Id: Iacdf4bb4c1c125c09305cbd8cb443c7c80cfc010
Diffstat (limited to 'include/utils/Looper.h')
-rw-r--r--include/utils/Looper.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/utils/Looper.h b/include/utils/Looper.h
index 3c2905d..96b971e 100644
--- a/include/utils/Looper.h
+++ b/include/utils/Looper.h
@@ -27,9 +27,6 @@
// When defined, uses epoll_wait() for polling, otherwise uses poll().
#define LOOPER_USES_EPOLL
-// When defined, logs performance statistics for tuning and debugging purposes.
-//#define LOOPER_STATISTICS
-
#ifdef LOOPER_USES_EPOLL
#include <sys/epoll.h>
#else
@@ -340,24 +337,6 @@ private:
void wakeAndLock();
#endif
-#ifdef LOOPER_STATISTICS
- static const int SAMPLED_WAKE_CYCLES_TO_AGGREGATE = 100;
- static const int SAMPLED_POLLS_TO_AGGREGATE = 1000;
-
- nsecs_t mPendingWakeTime;
- int mPendingWakeCount;
-
- int mSampledWakeCycles;
- int mSampledWakeCountSum;
- nsecs_t mSampledWakeLatencySum;
-
- int mSampledPolls;
- int mSampledZeroPollCount;
- int mSampledZeroPollLatencySum;
- int mSampledTimeoutPollCount;
- int mSampledTimeoutPollLatencySum;
-#endif
-
// This state is only used privately by pollOnce and does not require a lock since
// it runs on a single thread.
Vector<Response> mResponses;