Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

mtprof

A multi-thread aware profiler package, with an API similar to that of the standard cProfile module. Profiling data generated by mtprof is in the same format as that generated by cProfile and can therefore be analyzed using the same tools (such as pstats, snakeviz, etc.).

Compatibility

Python 3 is required, and only POSIX systems (Linux, etc.) are currently supported.

Install

This is a pure Python package, so pip install mtprof should generally work everywhere.

Command-line interface

python -m mtprof provides an interface similar to python -m cProfile and allows you to profile scripts, modules or entire applications.

Python API

The mtprof.Profile class has an API similar to cProfile.Profile.

Limitations

Due to the way Python profiling works, mtprof is only able to exploit profiling stats from threads whose lifetime is a subset of the profiler’s lifetime. A thread started before profiling was started, or ended after profiling was stopped, cannot have its statistics collected.

Due to this limitation, it is probably easier to use the command-line interface, which is similar to that of cProfile: just run python -m mtprof --help to get a view of the available options.

Only threads created using the standard threading.Thread interface are recognized. For most use cases this should not be an issue.

Status

This package is experimental.

Release files for mtprof 0.0.3

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

Source distribution (sdist)

Source distribution for mtprof 0.0.3
File Size Uploaded
mtprof-0.0.3.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mtprof 0.0.3
File Interpreter ABI Platform
mtprof-0.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.2 kB

Release files / mtprof-0.0.3.tar.gz

Download URL mtprof-0.0.3.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6fb7f30dc8cabd82c6a2df5ae8c1418bc8b81bed9994adef8ce1383a04396720
BLAKE2b-256 checksum
How to use checksums
a3f9ee1264ddb8d3d99893b3d08840327b987079ad2b1566767ba6a0020f0862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mtprof-0.0.3-py2.py3-none-any.whl

Download URL mtprof-0.0.3-py2.py3-none-any.whl
Size 8.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0b677ae7b54a79711016702818b17df064ca9aa494bd74bac65121aa581c6a24
BLAKE2b-256 checksum
How to use checksums
358513e1288cca0897214010576bedd4813e551a8dfc97a76b05948c54593764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.3 This release

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