项目详情
由
分享


HelloGitHub 评分
0 人评分
开源•BSD-3-Clause
认领
讨论
收藏
分享
6.9k
星数
否
中文
Python
主语言
是
活跃
59
贡献者
44
Issues
否
组织
5.0.0
最新版本
243
Forks
BSD-3-Clause
协议
更多

简单易用的 Python 代码性能分析库,优化 Python 代码的工具。支持 Python 3.7+ 能够分析异步代码,仅需一条命令即可显示具体到函数的耗时,快速指出影响代码性能的地方,帮助提高代码性能让你的代码快人一步
```
# 命令模式
Usage: pyinstrument [options] scriptfile [arg] ...
# 代码片段模式
from pyinstrument import Profiler
profiler = Profiler()
profiler.start()
# 要分析的代码
profiler.stop()
profiler.print()
# 还支持 flask 等 Web 框架
```
评论
评分:
暂无精选评论