| Crates.io | puffin_egui |
| lib.rs | puffin_egui |
| version | 0.29.0 |
| created_at | 2021-05-06 09:09:35.173242+00 |
| updated_at | 2024-07-31 16:23:03.254839+00 |
| description | Show puffin profiler flamegraph in-game using egui |
| homepage | https://github.com/EmbarkStudios/puffin |
| repository | https://github.com/EmbarkStudios/puffin |
| max_upload_size | |
| id | 393761 |
| size | 138,887 |
puffin profiler flamegraph in-game using eguipuffin 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.
To try it out, run cargo run --release --example eframe