Skip to content

Flamegraphs 🔥 #46

@maflcko

Description

@maflcko

Make sure to install perf, then:

# Attach to running process
perf record -g --call-graph dwarf/fp/lbr -F 101 -p PID -- sleep 60

# For full lifetime of process
FUZZ=rpc  perf record -g --call-graph fp/lbr/dwarf -F 101  ./bld-cmake/bin/fuzz -runs=1 ~/Downloads/clusterfuzz-testcase-rpc-5441640485683200
hotspot  ./perf.data

Make sure to clone https://github.com/brendangregg/FlameGraph, then:

( perf script | ./FlameGraph/stackcollapse-perf.pl --all | ./FlameGraph/flamegraph.pl > /tmp/a.svg ) && firefox /tmp/a.svg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions