RaspberryPi cProfile使用

使用sudo python -m cProfile -o 1.cprof your.py生成cprof文件

windows下安装snakeviz:pip install -i https://pypi.doubanio.com/simple/ snakeviz --trusted-host pypi.doubanio.com

使用:Python27\Scripts文件夹下snakeviz.exe 1.cprof

posted @ 2016-06-08 12:23  fzyzcjy  阅读(231)  评论(0编辑  收藏  举报