pub struct ProfileBuilder { /* private fields */ }Available on crate features
Profiler and Runtime and Debugger only.Implementations§
Source§impl ProfileBuilder
impl ProfileBuilder
Sourcepub fn nodes(&mut self, v: Vec<ProfileNode>) -> &mut Self
pub fn nodes(&mut self, v: Vec<ProfileNode>) -> &mut Self
The list of profile nodes. First item is the root node.
Sourcepub fn start_time(&mut self, v: f64) -> &mut Self
pub fn start_time(&mut self, v: f64) -> &mut Self
Profiling start timestamp in microseconds.
Sourcepub fn time_deltas(&mut self, v: Vec<u32>) -> &mut Self
pub fn time_deltas(&mut self, v: Vec<u32>) -> &mut Self
Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
pub fn build(&mut self) -> Result<Profile, &'static str>
Trait Implementations§
Source§impl Clone for ProfileBuilder
impl Clone for ProfileBuilder
Source§fn clone(&self) -> ProfileBuilder
fn clone(&self) -> ProfileBuilder
Returns a duplicate 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 moreSource§impl Debug for ProfileBuilder
impl Debug for ProfileBuilder
Auto Trait Implementations§
impl Freeze for ProfileBuilder
impl RefUnwindSafe for ProfileBuilder
impl Send for ProfileBuilder
impl Sync for ProfileBuilder
impl Unpin for ProfileBuilder
impl UnwindSafe for ProfileBuilder
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