git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329174
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Value < MinLatency)
MinLatency = Value;
}
- return {{"latency", static_cast<double>(MinLatency) / NumRepetitions}};
+ return {{"latency", static_cast<double>(MinLatency) / NumRepetitions, ""}};
}
} // namespace exegesis
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
+#include "llvm/Config/config.h"
#include <functional>
#include <memory>
int64_t read() const; // Return the current value of the counter.
private:
+#ifdef HAVE_LIBPFM
int FileDescriptor = -1;
+#endif
};
// Helper to measure a list of PerfEvent for a particular function.
ToDisk.LLVMTriple = "llvm_triple";
ToDisk.NumRepetitions = 1;
ToDisk.Measurements.push_back(BenchmarkMeasure{"a", 1, "debug a"});
- ToDisk.Measurements.push_back(BenchmarkMeasure{"b", 2});
+ ToDisk.Measurements.push_back(BenchmarkMeasure{"b", 2, ""});
ToDisk.Error = "error";
const llvm::StringRef Filename("data.yaml");