Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xhmonitor, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size xhmonitor-0.0.2-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size xhmonitor-0.0.2.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page