a lib for Performance monitoring
Project description
- 一个性能监控的库
安装命令:
pip install xhmonitor
使用方法:
from xhmonitor import start_monitor, end_monitor
def TestProfile():
iCnt = 0
for x in range(10000):
iCnt += x
print(iCnt)
start_monitor()
TestProfile()
end_monitor()
会生成一个time.txt和time.view文本
time.txt: 性能测试的文本文件,可以查看每个函数的运行时间
time.view:可使用kcachegrind, qcachegrind工具打开该文件可视化查看更详细内容
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xhmonitor-0.0.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for xhmonitor-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e4718281e488c0d8d5976b98cde76b232f0203ecaa4df554ecf4e0110affd5 |
|
MD5 | 343b48e502797163d7994bdc586e5bec |
|
BLAKE2b-256 | f5c88e8b08936c994316ff32d34a80753373a9af68f88f69d1cdfc08c764d3ee |