Skip to content

Commit

Permalink
Fix incorrect flag in build performance blogpost (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
jin authored Apr 29, 2024
1 parent de105bf commit a4caf3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2022-11-15-build-performance-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ To analyze Bazel’s memory footprint on a more granular level, we recommend usi
While [persistent workers](https://bazel.build/remote/persistent) can help to speed up builds significantly (especially for interpreted languages) their memory footprint can be problematic. Bazel collects metrics on its workers, in particular,
the `WorkerMetrics.WorkerStats.worker_memory_in_kb` field tells how much memory workers use (by mnemonic).

The JSON trace profiler also collects persistent worker memory usage during the invocation by passing in the `--experimental_collect_system_network_usage` flag (new in Bazel 6.0).
The JSON trace profiler also collects persistent worker memory usage during the invocation by passing in the `--experimental_collect_worker_data_in_profiler` flag (new in Bazel 6.0).

![Memory profiling for persistant workers with Json trace profiles](/assets/workers-memory-usage.png)

Expand Down

0 comments on commit a4caf3b

Please sign in to comment.