how to debug long evaluation times

18 views
Skip to first unread message

Prashant Deva

unread,
Oct 16, 2024, 5:43:32 PMOct 16
to bazel-discuss
of late our bazel build is spending a lot of time in 'evaluation' phase, even when there is no changes to any code to be compiled.

how does one go about debugging/fixing this?

Prashant

Tobias Werth

unread,
Oct 17, 2024, 11:45:38 AMOct 17
to Prashant Deva, bazel-discuss
I am not sure what you refer to with "Evaluation". Bazel reads BUILD and bzl files in the analysis phase, building up internal graph structures and then executes actions as part of the execution phase.

In both cases, it may be worth looking into the JSON trace profile and see what is happening: https://bazel.build/advanced/performance/json-trace-profile

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/11270b28-08d5-4ec2-a784-1b6e0de0f693n%40googlegroups.com.

--

Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Liana Sebastian

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls Sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde. 

     

This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.


Reply all
Reply to author
Forward
0 new messages