Searched refs:StopWatch (Results 1 - 9 of 9) sorted by relevance

/system/core/libutils/
H A DStopWatch.cpp17 #define LOG_TAG "StopWatch"
31 #include <utils/StopWatch.h>
38 StopWatch::StopWatch(const char *name, int clock, uint32_t flags) function in class:android::StopWatch
44 StopWatch::~StopWatch()
48 ALOGD("StopWatch %s (us): %" PRId64 " ", mName, ns2us(elapsed));
56 const char* StopWatch::name() const
61 nsecs_t StopWatch::lap()
75 nsecs_t StopWatch
[all...]
H A DAndroid.mk31 StopWatch.cpp \
/system/extras/tests/sdcard/
H A Dtestcase.h99 void setDump() { StopWatch::setPrintRawMode(true); }
101 StopWatch *testTimer() { return mTestTimer; }
102 StopWatch *openTimer() { return mOpenTimer; }
103 StopWatch *readTimer() { return mReadTimer; }
104 StopWatch *writeTimer() { return mWriteTimer; }
105 StopWatch *syncTimer() { return mSyncTimer; }
106 StopWatch *truncateTimer() { return mTruncateTimer; }
107 StopWatch *traverseTimer() { return mTraverseTimer; }
158 StopWatch *mTestTimer; // Used to time the test overall.
159 StopWatch *mOpenTime
[all...]
H A Dstopwatch.h38 // StopWatch class to collect execution statistics.
45 // If StopWatch::setPrintRawMode(true) has been called, the raw
62 // StopWatch watch("my name", 20);
75 class StopWatch { class in namespace:android_test
91 StopWatch(const char *name, size_t capacity = kUseDefaultCapacity);
92 ~StopWatch();
94 // A StopWatch instance measures time intervals. Use setDataSize
H A Dstopwatch.cpp54 StopWatch::StopWatch(const char *name, size_t capacity) function in class:android_test::StopWatch
67 StopWatch::~StopWatch()
78 void StopWatch::start()
92 void StopWatch::stop()
100 void StopWatch::setPrintRawMode(bool raw)
106 void StopWatch::sprint(char **str, size_t *size)
121 SNPRINTF_OR_RETURN(*str, *size, "# StopWatch %s total/cumulative duration %f Samples: %d\n",
148 // a capacity when building the StopWatch
[all...]
H A Dtestcase.cpp153 mTestTimer = new StopWatch(total_time, 1);
156 mOpenTimer = new StopWatch("open", iter() * kReadWriteFactor);
158 mReadTimer = new StopWatch("read", iter() * dataSize() / chunkSize() * kReadWriteFactor);
161 mWriteTimer = new StopWatch("write", iter() * dataSize() / chunkSize());
164 mSyncTimer = new StopWatch("sync", iter());
166 mTruncateTimer = new StopWatch("truncate", iter());
168 mTraverseTimer = new StopWatch("traversal", iter());
H A Dsdcard_perf_test.cpp99 using android_test::StopWatch;
/system/core/include/utils/
H A DStopWatch.h29 class StopWatch class in namespace:android
32 StopWatch( const char *name,
35 ~StopWatch();
/system/core/libutils/tests/
H A DLooper_test.cpp7 #include <utils/StopWatch.h>
116 StopWatch stopWatch("pollOnce");
129 StopWatch stopWatch("pollOnce");
143 StopWatch stopWatch("pollOnce");
154 StopWatch stopWatch("pollOnce");
170 StopWatch stopWatch("pollOnce");
189 StopWatch stopWatch("pollOnce");
211 StopWatch stopWatch("pollOnce");
230 StopWatch stopWatch("pollOnce");
256 StopWatch stopWatc
[all...]

Completed in 3589 milliseconds