aboutsummaryrefslogtreecommitdiff
path: root/MicroBenchmarks/libs/benchmark-1.2.0/src/sysinfo.h
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-08-21 00:20:34 +0000
committerDean Michael Berris <dberris@google.com>2017-08-21 00:20:34 +0000
commit8a55eacdd27d2238ac8691f1037ffd61619ea871 (patch)
tree12e6cfedfdb72ebea928e3a9f19d8344827e7e23 /MicroBenchmarks/libs/benchmark-1.2.0/src/sysinfo.h
parent601d974b51611c15aa50f8feca2ae149c0533275 (diff)
[XRay] [test-suite] Upgrade Google Benchmark library to 1.2.0
Summary: Add sources for Google Benchmark 1.2.0 Switch over from using Benchmark 1.1.0 to Benchmark 1.2.0 Remove Google Benchmark 1.1.0 sources This is to fix https://bugs.llvm.org/show_bug.cgi?id=34215 Reviewers: dberris Reviewed By: dberris Subscribers: hfinkel, dschuff, mgorny, javed.absar, llvm-commits Differential Revision: https://reviews.llvm.org/D36917 Patch by eizan. git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@311306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'MicroBenchmarks/libs/benchmark-1.2.0/src/sysinfo.h')
-rw-r--r--MicroBenchmarks/libs/benchmark-1.2.0/src/sysinfo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/MicroBenchmarks/libs/benchmark-1.2.0/src/sysinfo.h b/MicroBenchmarks/libs/benchmark-1.2.0/src/sysinfo.h
new file mode 100644
index 00000000..c5d9916d
--- /dev/null
+++ b/MicroBenchmarks/libs/benchmark-1.2.0/src/sysinfo.h
@@ -0,0 +1,10 @@
+#ifndef BENCHMARK_SYSINFO_H_
+#define BENCHMARK_SYSINFO_H_
+
+namespace benchmark {
+int NumCPUs();
+double CyclesPerSecond();
+bool CpuScalingEnabled();
+} // end namespace benchmark
+
+#endif // BENCHMARK_SYSINFO_H_