#python #profiler

app downtown

A realtime BPF profiler

2 releases

0.1.1 Jun 27, 2023
0.1.0 Jun 18, 2023

#180 in Profiling

MIT license

710KB
928 lines

downtown

A realtime BPF profiler.

cargo install downtown

v0.1.0 - supports Python.

Usage

  • ./downtown src/mycode.py: monitor all python processes (/usr/bin/env python)
  • ./downtown src/mycode.py --pid 123: monitor /proc/123/exe
  • ./downtown src/mycode.py --python-bin ./python: monitor a python binary
  • up, down - scroll
  • enter - toggle

Requirement

  • Python built with --with-dtrace
    • on Linux, verify with readelf -S ./python | grep .note.stapsdt

Dependencies

~25–38MB
~591K SLoC