doc:appunti:prog:python_profiling_with_yappi
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:prog:python_profiling_with_yappi [2022/01/10 10:57] – created niccolo | doc:appunti:prog:python_profiling_with_yappi [2022/01/10 11:00] – niccolo | ||
---|---|---|---|
Line 31: | Line 31: | ||
<code python> | <code python> | ||
+ | import daemon | ||
+ | import threading | ||
import yappi | import yappi | ||
Line 46: | Line 48: | ||
yappi.get_func_stats(ctx_id=thread.id).print_all() | yappi.get_func_stats(ctx_id=thread.id).print_all() | ||
- | context = daemon.DaemonContext( | + | context = daemon.DaemonContext(...) |
- | | + | |
- | ) | + | |
with context: | with context: | ||
main_loop() | main_loop() | ||
</ | </ | ||
doc/appunti/prog/python_profiling_with_yappi.txt · Last modified: 2022/01/10 11:05 by niccolo