puffin_egui

Crates.iopuffin_egui
lib.rspuffin_egui
version0.27.1
sourcesrc
created_at2021-05-06 09:09:35.173242
updated_at2024-06-16 14:01:48.351009
descriptionShow puffin profiler flamegraph in-game using egui
homepagehttps://github.com/EmbarkStudios/puffin
repositoryhttps://github.com/EmbarkStudios/puffin
max_upload_size
id393761
size134,323
(embark-studios)

documentation

README

Show puffin profiler flamegraph in-game using egui

Embark Embark Crates.io Docs

puffin is an instrumentation profiler where you opt-in to profile parts of your code:

fn my_function() {
    puffin::profile_function!();
    if ... {
        puffin::profile_scope!("load_image", image_name);
        ...
    }
}

puffin_egui allows you to inspect the resulting profile data using egui with only one line of code:

puffin_egui::profiler_window(egui_ctx);

See the examples/ folder for how to use it with eframe or macroquad.

To try it out, run cargo run --release --example macroquad

Commit count: 303

cargo fmt