Plop低開銷 Python 程序分析工具
Plop 是一個對 Python 程序棧區(qū)取樣的分析工具,可以隨意的開啟或者關(guān)閉,而對性能的影響很小。
安裝:
pip install plop
用法:
要對整個Python腳本進(jìn)行概要分析,請運行:
python -m plop.collector myscript.py
分析結(jié)果會寫入配置文件 ./profiles/[timestamp]
要將查看器用于默認(rèn)的.plop輸出格式,請運行:
python -m plop.viewer --datadir = demo / profiles
然后到 http://localhost:8888 中查看
評論
圖片
表情
