-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Sphinx-Performance should also provide a Sphinx extension and maybe builder, so that we can get insights of the Sphinx-Build.
The first feature would be to collect the stats of the Garbage collector.
This code can be used:
import gc
stats = gc.get_stats()
print('** Python Garbage Collector stats **')
for index, col in enumerate(stats):
for key, value in col.items():
print(f'{index}.{key}: {value}')
print('')The output would like like this at the end of the Sphinx build:
** Python Garbage Collector stats **
0.collections: 492
0.collected: 2738
0.uncollectable: 0
1.collections: 44
1.collected: 769
1.uncollectable: 0
2.collections: 4
2.collected: 32384
2.uncollectable: 0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels