From 1ea51bf519bdfc0e04daa88b8788f06105c5599b Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Wed, 30 May 2012 19:17:47 -0700 Subject: Remove unused statistics code. Bug: 6559630 Change-Id: Iacdf4bb4c1c125c09305cbd8cb443c7c80cfc010 --- include/utils/Looper.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'include/utils') diff --git a/include/utils/Looper.h b/include/utils/Looper.h index 3c2905d597..96b971e97d 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 #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 mResponses; -- cgit v1.2.3-59-g8ed1b