Skip to content

Commit b2407b9

Browse files
rjogradycopybara-github
authored andcommitted
Add a "default" option to fleetbench.
When --benchmark_filter=default, use the default settings configured by the benchmark registrar. PiperOrigin-RevId: 600796891 Change-Id: I93120113fbb7b4f755547a772c3bce905ded38f1
1 parent 94d5930 commit b2407b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fleetbench/benchmark_main.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ int main(int argc, char* argv[]) {
3131
tcmalloc::MallocExtension::ProcessBackgroundActions();
3232
}) : nullptr;
3333
setenv("FLEETBENCH_PROGRAM_PATH", argv[0], 1);
34-
if (benchmark::GetBenchmarkFilter().empty()) {
34+
if (benchmark::GetBenchmarkFilter().empty() ||
35+
benchmark::GetBenchmarkFilter() == "default") {
3536
// --benchmark_filter flag not set
3637
benchmark::SetBenchmarkFilter(
3738
fleetbench::DynamicRegistrar::Get()->GetDefaultFilter());

0 commit comments

Comments
 (0)