1 | // Copyright 2015 Google Inc. All rights reserved. |
2 | // |
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | // you may not use this file except in compliance with the License. |
5 | // You may obtain a copy of the License at |
6 | // |
7 | // http://www.apache.org/licenses/LICENSE-2.0 |
8 | // |
9 | // Unless required by applicable law or agreed to in writing, software |
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | // See the License for the specific language governing permissions and |
13 | // limitations under the License. |
14 | |
15 | #ifndef BENCHMARK_RUNNER_H_ |
16 | #define BENCHMARK_RUNNER_H_ |
17 | |
18 | #include "benchmark_api_internal.h" |
19 | #include "internal_macros.h" |
20 | |
21 | DECLARE_double(benchmark_min_time); |
22 | |
23 | DECLARE_int32(benchmark_repetitions); |
24 | |
25 | DECLARE_bool(benchmark_report_aggregates_only); |
26 | |
27 | DECLARE_bool(benchmark_display_aggregates_only); |
28 | |
29 | DECLARE_string(benchmark_perf_counters); |
30 | |
31 | namespace benchmark { |
32 | |
33 | namespace internal { |
34 | |
35 | extern MemoryManager* memory_manager; |
36 | |
37 | struct RunResults { |
38 | std::vector<BenchmarkReporter::Run> non_aggregates; |
39 | std::vector<BenchmarkReporter::Run> aggregates_only; |
40 | |
41 | bool display_report_aggregates_only = false; |
42 | bool file_report_aggregates_only = false; |
43 | }; |
44 | |
45 | RunResults RunBenchmark( |
46 | const benchmark::internal::BenchmarkInstance& b, |
47 | std::vector<BenchmarkReporter::Run>* complexity_reports); |
48 | |
49 | } // namespace internal |
50 | |
51 | } // end namespace benchmark |
52 | |
53 | #endif // BENCHMARK_RUNNER_H_ |
54 | |