| 238 | } |
| 239 | |
| 240 | int main(int argc, char *argv[]) { |
| 241 | ::benchmark::Initialize(&argc, argv); |
| 242 | if (argc == 1) { |
| 243 | std::cerr << "Usage: ./cpp-benchmark <input data>" << std::endl; |
| 244 | std::cerr << "input data is in the format of \"benchmarks.proto\"" |
| 245 | << std::endl; |
| 246 | return 1; |
| 247 | } else { |
| 248 | for (int i = 1; i < argc; i++) { |
| 249 | RegisterBenchmarks(ReadFile(argv[i])); |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | ::benchmark::RunSpecifiedBenchmarks(); |
| 254 | } |
nothing calls this directly
no test coverage detected