Skip to main content

valgrind

Usage

Run python3 -m pip install valgrind.

In benchmark.py put:

import valgrind

if __name__ == "__main__":
  some_startup_code()
  valgrind.callgrind_start_instrumentation()
  some_expensive_function()
  valgrind.callgrind_stop_instrumentation()
  valgrind.callgrind_dump_stats("myprofile")

Run valgrind --tool=callgrind --instr-atstart=no python3 benchmark.py.

See profile in myprofile file. Consider opening with KCachegrind or QCachegrind.

Metadata

Release files for valgrind 0.0.0

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

Source distribution (sdist)

Source distribution for valgrind 0.0.0
File Size Uploaded Provenance Actions
valgrind-0.0.0.tar.gz 47.2 kB Without provenance Details for valgrind-0.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for valgrind 0.0.0
File Interpreter ABI Platform Actions
valgrind-0.0.0-cp38-cp38-macosx_10_6_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.6+ x86-64 Details for valgrind-0.0.0-cp38-cp38-macosx_10_6_x86_64.whl

Total release size: 51.4 kB

Release files / valgrind-0.0.0.tar.gz

Download URL valgrind-0.0.0.tar.gz
Size 47.2 kB
Tags Source
SHA-256 checksum
How to use checksums
feb5e5705362b48485a64596c13571897684f0e378f1cffa095c06bb1defe80b
BLAKE2b-256 checksum
How to use checksums
5673299e994e6627bd69fba31901b6234ed45b15413af720d598459f1840c836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release files / valgrind-0.0.0-cp38-cp38-macosx_10_6_x86_64.whl

Download URL valgrind-0.0.0-cp38-cp38-macosx_10_6_x86_64.whl
Size 4.2 kB
Tags CPython 3.8 macOS 10.6+ x86-64
SHA-256 checksum
How to use checksums
6fefd030f361ae4c2e9169c63a920f6aee80f43226adcf48b8131a458c8c1a9d
BLAKE2b-256 checksum
How to use checksums
b5143964e97b308bf4266dde57816b61b973f3c8bc3f5f82d85888006acbb7e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Security for valgrind 0.0.0

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.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files No provenance

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