Optimize Profiler.

Failed in 8h 2m
:pipeline:
Print Test Summary for Shards
12/20
:mac: macOS (shard 11)curl -sS https://raw.githubusercontent.com/bazelbuild/continuous-integration/master/buildkite/bazelci.py?1718991669 -o bazelci.py && python3 bazelci.py runner --task=macos_v2 --http_config=https://raw.githubusercontent.com/fweikert/bazel/macos_v2/.bazelci/postsubmit.yml
Timed Out
Waited 5s
·
Ran in 8h 0m
Total Job Run Time: 21h 26m