diff --git a/tools/bazel.rc b/tools/bazel.rc index b27d9cb0675..a7bb30bbcc3 100644 --- a/tools/bazel.rc +++ b/tools/bazel.rc @@ -88,3 +88,10 @@ build:basicprof --copt=-DGRPC_TIMERS_RDTSC build:python_single_threaded_unary_stream --test_env="GRPC_SINGLE_THREADED_UNARY_STREAM=true" build:python_poller_engine --test_env="GRPC_ASYNCIO_ENGINE=poller" + +# "counters" config is based on a legacy config provided by the Makefile (see definition in build_handwritten.yaml). +# It is only used in microbenchmarks. +# TODO(jtattermusch): get rid of the "counters" config when possible +build:counters --compilation_mode=opt +build:counters --copt=-Wframe-larger-than=16384 +build:counters --copt=-DGPR_LOW_LEVEL_COUNTERS