Skip to main content

Shows you low-level allocator stats against a separate interpreter

Project description

zap-allocator

Dumps detailed stats about memory pools in a running Python interpreter (supports 3.9-3.14, but does not support running under or against a freethreading build at the moment).

Sould print something like

$ zap-allocator 69054
PID 69054  │  snapshot 1  │  89 arenas × 1 MiB  (highwater 143)

  size  pools    in_use   fill%
───────────────────────────────
    16      2       126    6.2%
    32      7     1,717   48.1%
    48     33    10,172   90.7%
    64     63    16,046   99.9%
    80   4939  1,007,390  100.0%
    96      9     1,489   97.3%
   112      6       858   98.6%
   128     10     1,170   92.1%
   144      3       286   84.4%
   160     27     2,723   98.9%
   176      3       219   79.3%
   192      2       150   88.2%
   208      9       653   93.0%
   224      6       395   91.4%
   240      5       335   98.5%
   256      6       353   93.4%
   272      5       283   94.3%
   288      7       388   99.0%
   304      4       167   78.8%
   320      4       185   90.7%
   336      4       151   78.6%
   352      3       131   94.9%
   368      3        97   73.5%
   384      3       105   83.3%
   400      8       299   93.4%
   416      2        73   93.6%
   432      2        65   87.8%
   448      2        61   84.7%
   464      2        44   62.9%
   480      2        55   80.9%
   496      2        53   82.8%
   512      2        59   95.2%

total: 1,046,298 blocks in use, 5,720 available

Version Compat

This library is compatile with Python 3.10+, but should be linted under the newest stable version.

Versioning

This library follows meanver which basically means semver along with a promise to rename when the major version changes.

License

zap-allocator is copyright Tim Hatch, and licensed under the MIT license. See the LICENSE file for details.

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

zap_allocator-0.1.1.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zap_allocator-0.1.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file zap_allocator-0.1.1.tar.gz.

File metadata

  • Download URL: zap_allocator-0.1.1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zap_allocator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9973b97a8a25f284e8fba9ab479825043d1f1cb9483e8b7ab134797094458762
MD5 c87c143b503525fab4e570ff46af0e0d
BLAKE2b-256 65e0195278bf02782f105ab4f6b4e5d10045d1762eb6519cc7a2c8b591fcc501

See more details on using hashes here.

Provenance

The following attestation bundles were made for zap_allocator-0.1.1.tar.gz:

Publisher: build.yml on advice-animal/zap-allocator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zap_allocator-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zap_allocator-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zap_allocator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47ecc5840e1a766574749b2e8dc78fc0101568cb9af2a2e559adbf65aa5501c7
MD5 d7dd8c97b45a50e17d11c9f4cc446f18
BLAKE2b-256 3163485398a48fed8a56762f1793ce0f0bf2add129e0bf74bc9cb7701e3199af

See more details on using hashes here.

Provenance

The following attestation bundles were made for zap_allocator-0.1.1-py3-none-any.whl:

Publisher: build.yml on advice-animal/zap-allocator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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