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

/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;

Completed in 50 milliseconds