I am experiencing a long 'clean build' time using Bazel in my current project.
What are the steps we recommend steps to diagnose this?
To run Bazel, go to your base workspace directory or any of its subdirectories and type bazel .
Path: . bazelrc in your workspace directory (next to the main WORKSPACE file).
build : Builds the specified targets. canonicalize-flags : Canonicalize Bazel flags. clean : Removes output files and optionally stops the server. cquery : Executes a post-analysis dependency graph query.
Try to profile your build with --profile
The syntax is bazel build --profile file //my:target
Then you can get a summary of the profiling information with bazel analyze-profile file
and comprehensive chart of executed task with bazel analyze-profile --html file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With