Struct puffin_egui::ProfilerUi
source · pub struct ProfilerUi {
pub flamegraph_options: Options,
pub stats_options: Options,
pub view: View,
/* private fields */
}
Expand description
Contains settings for the profiler.
Fields§
§flamegraph_options: Options
Options for configuring how the flamegraph is displayed.
stats_options: Options
Options for configuring how the stats page is displayed.
view: View
What view is active.
Implementations§
source§impl ProfilerUi
impl ProfilerUi
pub fn reset(&mut self)
sourcepub fn window(
&mut self,
ctx: &Context,
frame_view: &mut MaybeMutRef<'_, FrameView>,
) -> bool
pub fn window( &mut self, ctx: &Context, frame_view: &mut MaybeMutRef<'_, FrameView>, ) -> bool
Show an egui::Window
with the profiler contents.
If you want to control the window yourself, use Self::ui
instead.
Returns false
if the user closed the profile window.
sourcepub fn ui(&mut self, ui: &mut Ui, frame_view: &mut MaybeMutRef<'_, FrameView>)
pub fn ui(&mut self, ui: &mut Ui, frame_view: &mut MaybeMutRef<'_, FrameView>)
Show the profiler.
Call this from within an egui::Window
, or use Self::window
instead.
Trait Implementations§
source§impl Clone for ProfilerUi
impl Clone for ProfilerUi
source§fn clone(&self) -> ProfilerUi
fn clone(&self) -> ProfilerUi
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProfilerUi
impl !RefUnwindSafe for ProfilerUi
impl Send for ProfilerUi
impl Sync for ProfilerUi
impl Unpin for ProfilerUi
impl !UnwindSafe for ProfilerUi
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more