We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dcb468 commit 5676231Copy full SHA for 5676231
src/Perf.cc
@@ -41,6 +41,12 @@ namespace PerfUtils {
41
delete[] latencies;
42
return stats;
43
}
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
+ */
50
Statistics manualBench(void (*function)(uint64_t*), int numIterations) {
51
uint64_t* latencies = new uint64_t[numIterations];
52
0 commit comments