memray
Memray is a memory profiler for Python. It can track memory allocations both in Python code and native extensions and generate various reports to help analyze memory usage in libraries and applications. It can be used as a CLI tool or as a library to perform more fine-grained profiling tasks.
Notable features:
- 🕵️♀️ Traces every function call so it can accurately represent the call stack, unlike sampling profilers.
- ℭ Also handles native calls in C/C++ libraries so the entire call stack is present in the results.
- 🏎 Blazing fast! Profiling causes minimal slowdown in the application. Tracking native code is somewhat slower, but this can be enabled or disabled on demand.
- 📈 It can generate various reports about the collected memory usage data, like flame graphs.
- 🧵 Works with Python threads.
- 👽🧵 Works with native-threads (e.g. C++ threads in C extensions).
Memray can help with the following problems:
- Analyze allocations in applications to help reduce memory usage.
- Find memory leaks.
- Find hotspots in code which cause a lot of allocations.
Note that memray only works on Linux and cannot be installed on other platforms.
Metadata
Release files for memray 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| memray-1.0.2.tar.gz | 914.0 kB | Without provenance | Details for memray-1.0.2.tar.gz |
Built distributions (wheels)
Total release size: 36.6 MB
Release files / memray-1.0.2.tar.gz
| Download URL | memray-1.0.2.tar.gz |
|---|---|
| Size | 914.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01fbbf43d434f81bed4d9e63f1e8eebcd9686945211b4cd4e51b2f03cc1004f5
|
|
BLAKE2b-256 checksum How to use checksums |
c590409516bd5dc1044c5cb69ade756da1764680b9451ab95e8ef45724647320
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / memray-1.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | memray-1.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.10 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
d8307977c838b91c7f4763071b11e966b7cc3ae62879ab5a1a91f4db356fd70b
|
|
BLAKE2b-256 checksum How to use checksums |
3021d4b1f8e0322c0f86cf0b377b5eea79a428932cb012359463eca864f46643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / memray-1.0.2-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
| Download URL | memray-1.0.2-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.10 Linux glibc 2.12+ x86-32 |
|
SHA-256 checksum How to use checksums |
802a53d1be33fb2798c7bb9cc50a9b323d0188fea3505eb54da7cf0260ef9f74
|
|
BLAKE2b-256 checksum How to use checksums |
802c5178adf01487d3363dba45da434b37f5dfc3acdbc72b2eca2ce908b4fe83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / memray-1.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | memray-1.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.9 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
0135ba58f73492ca90b55193a7fe64173e2312e6a3040a26dd367c18f0ebe959
|
|
BLAKE2b-256 checksum How to use checksums |
7e946aee638e43bb32b2dbcfe3678c703e66e16780286362928e219e05c1e3c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / memray-1.0.2-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
| Download URL | memray-1.0.2-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.9 Linux glibc 2.12+ x86-32 |
|
SHA-256 checksum How to use checksums |
54ca32d0afa802114f738dac4277359d151c85a1605ca04cb53a4c8b4a499c8d
|
|
BLAKE2b-256 checksum How to use checksums |
0b99f8e12e8b67207b353c524a4c8a4b786efc97935e56b0d2c989c1f1404378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / memray-1.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | memray-1.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.8 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
06031713095aa811542ca34ad4408031b98aebdd6e77c4f9c16635dd5a530814
|
|
BLAKE2b-256 checksum How to use checksums |
38ac8d29a558e5e28889890ef5920a61c237c61b766f7b5371625ef9579ad49c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / memray-1.0.2-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
| Download URL | memray-1.0.2-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.8 Linux glibc 2.12+ x86-32 |
|
SHA-256 checksum How to use checksums |
337fd3f36e4d452ca42538b1cce6601a7aed37155373c64bd37c66de8e8214c2
|
|
BLAKE2b-256 checksum How to use checksums |
7241a71de3ff0a102228cafe7bf6e0c3e02be608548f90033e88017bb0ceb8f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / memray-1.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | memray-1.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
7981d4cd0d4f9e31eb87c8138ceb821fd2f9e7590f32259df8606802baddc2fb
|
|
BLAKE2b-256 checksum How to use checksums |
c6e007e3c4ff3a55e24c3a5e210ba7d5a0e581f011995cd9eb76ac6c9de0e40c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / memray-1.0.2-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl
| Download URL | memray-1.0.2-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-32 |
|
SHA-256 checksum How to use checksums |
7c08ca95db8999c67db5d3185bbef188950c89b860e85440369f284c883e56f1
|
|
BLAKE2b-256 checksum How to use checksums |
9d8c06f13874f8ef2e69dd45f9aaee7d9012bbc566cc3d45e20c93b919cd13a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for memray 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.