summaryrefslogtreecommitdiff
path: root/include/utils
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2012-05-31 18:43:26 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2012-05-31 18:43:26 -0700
commit27d928474d05c8cf976d9da88be876feda7e10f3 (patch)
tree1c6ce97482e0d19380ab48f6b44006852a3c6761 /include/utils
parent1737e57a861326e96f3de19090975564f98a8fda (diff)
parentdce1547d65877b89cec4e52ee8e5b39830911d00 (diff)
am dce1547d: am 9e2e781a: Merge "Remove unused statistics code." into jb-dev
* commit 'dce1547d65877b89cec4e52ee8e5b39830911d00': Remove unused statistics code.
Diffstat (limited to 'include/utils')
-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 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 <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;