Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

smhmayboudi/profiled_guided_opimization_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

profiled_guided_opimization_example

rustc

$ rustc -Cprofile-generate=./pgo-data ./src/main.rs
$ ./main
$ llvm-profdata merge -o ./pgo-data/merged.profdata ./pgo-data
$ rustc -Cprofile-use=./pgo-data/merged.profdata -O ./src/main.rs

cargo

$ rm -rf /tmp/pgo-data
$ RUSTFLAGS="-Cprofile-generate=/tmp/pgo-data" \
    cargo build --release --target=x86_64-unknown-linux-musl
$ llvm-profdata merge -o /tmp/pgo-data/merged.profdata /tmp/pgo-data
$ RUSTFLAGS="-Cprofile-use=/tmp/pgo-data/merged.profdata" \
    cargo build --release --target=x86_64-unknown-linux-musl

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages