perf

# Run in a seperate window to the target program that wants to be perf'ed
sudo perf top

# Run the target program through perf to see program specific stats
sudo perf stat ./etherate_mt -i ens2f1 -c 2

# Run in a seperate window to the target app to record all calls
sudo perf record -a -g -o c2.perf

# Read and display the recorded events from the perf record
sudo perf report -i c2.perf

# Record the perf stats for the target application specifically
sudo perf record -a -g -o c2-cmd.perf chrt -r 1 taskset -c 2-5 ./etherate_mt -i ens2f1 -c 2

Previous page: MOTD Script
Next page: 'rtorrent' - Notes