Sample hot functions on the system in real time.
Section: Tracing System Calls and Libraries
Profile hot code paths
bash
bash
sudo perf topExplanation
Sample hot functions on the system in real time.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Tracing System Calls and Libraries
Attach strace to a running PID
Attach to a live process and trace syscalls.
Trace child processes too
Write one trace file per process and follow forks.