Skip to main content
  • 一个性能监控的库

安装命令:

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工具打开该文件可视化查看更详细内容

Release files for xhmonitor 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xhmonitor 0.0.2
File Size Uploaded
xhmonitor-0.0.2.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xhmonitor 0.0.2
File Interpreter ABI Platform
xhmonitor-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / xhmonitor-0.0.2.tar.gz

Download URL xhmonitor-0.0.2.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f0b2921290ed85c4de8465617cfdb63468381bd0feda8c458b0e7da5946c5349
BLAKE2b-256 checksum
How to use checksums
98d9f9ff35e2d86359c244ad3756f9433eb79a638675b4c277f3d4e076ce0821
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / xhmonitor-0.0.2-py3-none-any.whl

Download URL xhmonitor-0.0.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40e4718281e488c0d8d5976b98cde76b232f0203ecaa4df554ecf4e0110affd5
BLAKE2b-256 checksum
How to use checksums
f5c88e8b08936c994316ff32d34a80753373a9af68f88f69d1cdfc08c764d3ee
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page