Skip to content

Profiling memory and CPU usage

Andres Riancho edited this page Apr 4, 2014 · 15 revisions

Profiling CPU usage

sudo pip install yappi --upgrade
import yappi
yappi.start()
main()
yappi.get_func_stats().save('/tmp/yappi-w3af.profile', type="pstat")

Analysis

sudo pip install RunSnakeRun --upgrade
python runsnake.py /tmp/yappi-w3af.profile