Log execution and time spend executing for all notebooks executed#872
Log execution and time spend executing for all notebooks executed#872jenshnielsen wants to merge 1 commit intospatialaudio:masterfrom
Conversation
|
Thanks for this PR! I think this is very useful, however ... are you aware of https://www.sphinx-doc.org/en/master/usage/extensions/duration.html? This seems to provide similar information for the 5 slowest notebooks (or other Sphinx sources). When setting The displayed durations seem to be a bit longer than the ones from this PR, I guess this includes a bit more than just executing the notebooks. |
|
@mgeier Thanks for the pointer I was not aware of that! |
|
@mgeier I tested the durations extension and both the duration_n_slowest config and the json output seems to work for me using sphinx >=9 (I can't use that for my actual build due to an unrelated bug but that is not important in this context) |
While trying to optimize the docs build time for my documentation it was useful for me to log the time taken to execute notebooks to identify notebooks that are slower than they should be.
I don't know if this is useful for others but I figured I would open a pr in case it is.
The output can be activated by passing
-vto sphinx when building the docs