Repository Details
Shared by
HelloGitHub Rating
0 ratings
告诉你代码慢在哪里的 Python 性能分析器
Past 7 days Received 0 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周二 | 8,032 | — |
| 周三 | 8,032 | 0 |
| 周四 | 8,031 | -1 |
| 周五 | 8,031 | 0 |
| 周六 | 8,032 | +1 |
| 周日 | 8,032 | 0 |
| 周一 | 8,032 | 0 |
8k
Stars
No
Chinese
Python
Language
Yes
Active
79
Contributors
34
Issues
No
Organization
None
Latest
304
Forks
BSD-3-Clause
License

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