-
Notifications
You must be signed in to change notification settings - Fork 212
Show memory usage in build output #522
Copy link
Copy link
Closed
Description
The show_memory option is cumbersome to work with - I want to see which examples have high memory consumption and I do not want to look through each page in the gallery to find out the memory usage.
Can you all output the memory usage in the build output similar to how execution times are shown and perhaps sort them from high to low useage?
It'd be nice if the output was formatted more clearly into a raw text table. Maybe something like:
example execution summary:
Filename Time Memory
- ../examples/02-plot/orbit.py 39 sec 282 MB
- ../examples/02-plot/opacity.py 22 sec 250 MB
- ../examples/02-plot/lighting.py 21 sec 300 MB
- ../examples/02-plot/texture.py 20 sec 133 MB
- ../examples/01-filter/slicing.py 19 sec 85 MBAlso, every so often I run into an issue with zombie threads - anyone else experience ths when using 'show_memory': True:
(dev) ➜ docs git:(patch/subplot) ✗ rm -r examples
(dev) ➜ docs git:(master) ✗ make html
Running Sphinx v2.1.2
Adding copy buttons to code blocks...
loading pickled environment... done
generating gallery...
Exception occurred:
File "/Users/bane/.local/lib/python3.7/site-packages/psutil/_psosx.py", line 370, in catch_zombie
raise ZombieProcess(proc.pid, proc._name, proc._ppid)
psutil.ZombieProcess: psutil.ZombieProcess process still exists but it's a zombie (pid=71575)
The full traceback has been saved in /var/folders/2x/4df66vz13pv4hj_ysv23tyyc0000gn/T/sphinx-err-8aw1_qos.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [html] Error 2Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels