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 | namespace benchmark { |
30 | |
31 | namespace internal { |
32 | |
33 | extern MemoryManager* memory_manager; |
34 | |
35 | struct RunResults { |
36 | std::vector<BenchmarkReporter::Run> non_aggregates; |
37 | std::vector<BenchmarkReporter::Run> aggregates_only; |
38 | |
39 | bool display_report_aggregates_only = false; |
40 | bool file_report_aggregates_only = false; |
41 | }; |
42 | |
43 | RunResults RunBenchmark( |
44 | const benchmark::internal::BenchmarkInstance& b, |
45 | std::vector<BenchmarkReporter::Run>* complexity_reports); |
46 | |
47 | } // namespace internal |
48 | |
49 | } // end namespace benchmark |
50 | |
51 | #endif // BENCHMARK_RUNNER_H_ |
52 | |