Skip to content

Commit 5676231

Browse files
author
Henry Qin
committed
Document manualBench
1 parent 2dcb468 commit 5676231

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Perf.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ namespace PerfUtils {
4141
delete[] latencies;
4242
return stats;
4343
}
44+
45+
/**
46+
* Run the given function for numIterations, and compute statistics on the
47+
* times reported by the function itself. The only argument to the function
48+
* is an output parameter where the measured time should be placed.
49+
*/
4450
Statistics manualBench(void (*function)(uint64_t*), int numIterations) {
4551
uint64_t* latencies = new uint64_t[numIterations];
4652

0 commit comments

Comments
 (0)