Skip to content

tailwind/manual-club-linux-perf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manual Club Linux Perf

A start repo for the manual club session on linux perf.

For this week please read the linux perf tutorial.

Getting Started C++

Here's a quick example of running linux perf on a C++ binary.

git clone https://github.com/tailwind/manual-club-linux-perf
cd manual-club-linux-perf

# Shell into a docker container running debian
./linux-shell.sh

# Compile our fibonacci program
gcc fib.c

# Performance profile our compiled binary
perf record ./a.out

# Read out performance profile
perf report

Getting Started Rust

Here's a quick example of running linux perf on a Rust binary.

git clone https://github.com/tailwind/manual-club-linux-perf
cd manual-club-linux-perf

# Shell into a docker container running debian
./linux-shell.sh
source $HOME/.cargo/env

# Compile our program
cargo build --release

# Performance profile our compiled binary
perf record ./target/release/manual-club-linux-perf

# Read out performance profile
perf report

About

A start repo for the manual club session on linux perf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors