あそび(cprofiler, graphviz)
利用
file
#!/bin/sh out="stat" python -m cProfile -o $out.prof $@ gprof2dot -f pstats $out.prof > $out.dot dot -o$out.png -Tpng $out.dot
run
# $ chmod u+x ~/bin/profviz.sh $ profviz.sh sandbox/python/a.py
file
#!/bin/sh out="stat" python -m cProfile -o $out.prof $@ gprof2dot -f pstats $out.prof > $out.dot dot -o$out.png -Tpng $out.dot
run
# $ chmod u+x ~/bin/profviz.sh $ profviz.sh sandbox/python/a.py