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.0.tar.gz (16.2 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.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zap_allocator-0.1.0.tar.gz
  • Upload date:
  • Size: 16.2 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.0.tar.gz
Algorithm Hash digest
SHA256 8a2190f81b10722325292289917c56fd1e0c1edabe9188c9d0eb24436d50e3ce
MD5 ab2502a4276575db6b76e4bfc2d7e48c
BLAKE2b-256 23ed571e984ddd9434229e58addecb220af36ec25a47b9e5e4697f7525a86377

See more details on using hashes here.

Provenance

The following attestation bundles were made for zap_allocator-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: zap_allocator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7433de59fc29e56d6ca194af6d4c6fcbdc1f12981d560bc6da1bf54fbe33ef57
MD5 c8d3129870fe2ff27c3eb18a3e9d50e9
BLAKE2b-256 298d706b1525e97aee28a743303bec45ba74fe934e6a3d686fad9f44d92fb753

See more details on using hashes here.

Provenance

The following attestation bundles were made for zap_allocator-0.1.0-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