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.

Source Distribution

xhmonitor-0.0.2.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

xhmonitor-0.0.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page