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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xhmonitor-0.0.2.tar.gz.
File metadata
- Download URL: xhmonitor-0.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0b2921290ed85c4de8465617cfdb63468381bd0feda8c458b0e7da5946c5349
|
|
| MD5 |
7974cd7bf467d6134e095b1863084716
|
|
| BLAKE2b-256 |
98d9f9ff35e2d86359c244ad3756f9433eb79a638675b4c277f3d4e076ce0821
|
File details
Details for the file xhmonitor-0.0.2-py3-none-any.whl.
File metadata
- Download URL: xhmonitor-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40e4718281e488c0d8d5976b98cde76b232f0203ecaa4df554ecf4e0110affd5
|
|
| MD5 |
343b48e502797163d7994bdc586e5bec
|
|
| BLAKE2b-256 |
f5c88e8b08936c994316ff32d34a80753373a9af68f88f69d1cdfc08c764d3ee
|