Plop - 低开销 Python 程序分析工具


MIT
跨平台
Python

软件简介

Plop 是一个对 Python 程序栈区取样的分析工具,可以随意的开启或者关闭,而对性能的影响很小。

安装:

pip install plop

用法:

要对整个Python脚本进行概要分析,请运行:

python -m plop.collector myscript.py

分析结果会写入配置文件 ./profiles/[timestamp]

要将查看器用于默认的.plop输出格式,请运行:

python -m plop.viewer --datadir = demo / profiles

然后到 http://localhost:8888 中查看