Puffin ImGui Flamegraph

Embark Embark Crates.io Docs

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

Example view

``` rust fn main() { puffin::setscopeson(true); // you may want to control this with a flag let mut puffinui = puffinimgui::ProfilerUi::default();

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

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

    puffin_ui.window(ui);
}

} ```