/snakemeter

Primary LanguageRustMIT LicenseMIT

snakemeter

Statistical Python Profiler written in Rust

Command-line Usage

  1. ./build_release.sh

  2. python snakemeter.py <your_python_script>

Program Usage

import snakemeter
sampler = snakemeter.Sampler(rate=500)
sampler.start()

try:
  # your code
finally:
  sampler.stop()

  sampler.print_stats()

Limitations

Currently supports only CPython 2.7.x