We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ed735 commit 4346cd9Copy full SHA for 4346cd9
fleetbench/proto/benchmark.cc
@@ -36,7 +36,6 @@ void BM_Protogen_Arena(benchmark::State& state) {
36
lifecycle.Run();
37
}
38
39
-BENCHMARK(BM_Protogen_Arena);
40
41
void BM_Protogen_NoArena(benchmark::State& state) {
42
const int32_t kIterations = 10;
@@ -48,11 +47,16 @@ void BM_Protogen_NoArena(benchmark::State& state) {
48
47
49
50
51
-BENCHMARK(BM_Protogen_NoArena);
+
+void RegisterBenchmarks() {
52
+ REGISTER_BENCHMARK(BM_Protogen_Arena);
53
+ REGISTER_BENCHMARK(BM_Protogen_NoArena);
54
+}
55
56
class BenchmarkRegisterer {
57
public:
58
BenchmarkRegisterer() {
59
+ DynamicRegistrar::Get()->AddCallback(RegisterBenchmarks);
60
DynamicRegistrar::Get()->AddDefaultFilter("BM_Protogen_Arena");
61
62
};
0 commit comments