Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Side by Side Diff: third_party/google_benchmark/src/benchmark_api_internal.h

Issue 2865663003: Adding Google benchmarking library. (Closed)
Patch Set: Sketch. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #ifndef BENCHMARK_API_INTERNAL_H
2 #define BENCHMARK_API_INTERNAL_H
3
4 #include "benchmark/benchmark_api.h"
5
6 #include <cmath>
7 #include <iosfwd>
8 #include <limits>
9 #include <string>
10 #include <vector>
11
12 namespace benchmark {
13 namespace internal {
14
15 // Information kept per benchmark we may want to run
16 struct Benchmark::Instance {
17 std::string name;
18 Benchmark* benchmark;
19 ReportMode report_mode;
20 std::vector<int> arg;
21 TimeUnit time_unit;
22 int range_multiplier;
23 bool use_real_time;
24 bool use_manual_time;
25 BigO complexity;
26 BigOFunc* complexity_lambda;
27 UserCounters counters;
28 bool last_benchmark_instance;
29 int repetitions;
30 double min_time;
31 size_t iterations;
32 int threads; // Number of concurrent threads to us
33 };
34
35 bool FindBenchmarksInternal(const std::string& re,
36 std::vector<Benchmark::Instance>* benchmarks,
37 std::ostream* Err);
38
39 bool IsZero(double n);
40
41 ConsoleReporter::OutputOptions GetOutputOptions(bool force_no_color = false);
42
43 } // end namespace internal
44 } // end namespace benchmark
45
46 #endif // BENCHMARK_API_INTERNAL_H
OLDNEW
« no previous file with comments | « third_party/google_benchmark/src/benchmark.cc ('k') | third_party/google_benchmark/src/benchmark_register.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698