Greenlet BottleNeck profiler.
Project description
Greenlet BottleNeck profiler.
Measures time precisely using “greenlet.settrace” to pause/continue counting time on switch from/to original greenlet.
May count wall-clock time too. Also counts step calls and context switches.
Usage:
gbn_attach()
gbn('step1')
step1()
gbn('step2')
step2()
wall = gbn('step3')
step3()
wall = gbn('step4', wall=wall)
step4()
gbn('step5', wall=wall)
step5()
gbn()
does_not_count_this()
log.info(gbn_report_and_reset())
# OR
spawn(gbn_report_and_reset, each=60, log=log.info)
See help(gbn) for detailed docs.
Additional tools:
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
gbn-0.4.3.tar.gz
(3.3 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
gbn-0.4.3-py2-none-any.whl
(5.1 kB
view details)
File details
Details for the file gbn-0.4.3.tar.gz.
File metadata
- Download URL: gbn-0.4.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee78f2a0611b414d17a87009855613929d7dc694a8de0741cb6b5ee965dcfd34
|
|
| MD5 |
ff3c0dca387e3b71a80be9cb5f472163
|
|
| BLAKE2b-256 |
a70d883df1890aa68a3ad5b9a6272716c8df03a8fb3b16124203096cf40822ec
|
File details
Details for the file gbn-0.4.3-py2-none-any.whl.
File metadata
- Download URL: gbn-0.4.3-py2-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5894f6caf0dbd128965869d6a021e1138b38d1be6083a759f96e18d2855e4f4
|
|
| MD5 |
2beb346974b565afef5e627c3a527947
|
|
| BLAKE2b-256 |
cbd2c809a14dbdc420ca7b2ad0bac4d5f55e9dccf4db3af0626a2af1eea147f6
|