puffin-imgui

Crates.iopuffin-imgui
lib.rspuffin-imgui
version0.22.0
sourcesrc
created_at2020-08-10 10:59:26.867484
updated_at2023-05-24 14:48:07.363668
descriptionImGui GUI bindings for the Puffin profiler
homepagehttps://github.com/EmbarkStudios/puffin
repositoryhttps://github.com/EmbarkStudios/puffin
max_upload_size
id275013
size90,688
Emil Ernerfeldt (emilk)

documentation

README

Puffin ImGui Flamegraph

Embark Embark Crates.io Docs

This crate provides a flamegraph view of the data collected by the Puffin profiler.

Example view

fn main() {
    puffin::set_scopes_on(true); // you may want to control this with a flag
    let mut puffin_ui = puffin_imgui::ProfilerUi::default();

    // game loop
    loop {
        puffin::GlobalProfiler::lock().new_frame();

        {
            puffin::profile_scope!("slow_code");
            slow_code();
        }

        puffin_ui.window(ui);
    }
}
Commit count: 303

cargo fmt