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 hashes
Filename, size xhmonitor-0.0.2.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page