elbaro / downtown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • Build dependencies
    • libelf (Ubuntu: apt install libelf-dev)
    • clang
  • Python built with --with-dtrace
    • on Linux, verify with readelf -S ./python | grep .note.stapsdt

About


Languages

Language:C 98.8%Language:Rust 1.2%