Struct fxprof_processed_profile::Profile
source · [−]pub struct Profile { /* private fields */ }
Implementations
sourceimpl Profile
impl Profile
pub fn new(
product: &str,
reference_timestamp: ReferenceTimestamp,
interval: Duration
) -> Self
pub fn set_interval(&mut self, interval: Duration)
pub fn set_reference_timestamp(
&mut self,
reference_timestamp: ReferenceTimestamp
)
pub fn set_product(&mut self, product: &str)
pub fn add_process(
&mut self,
name: &str,
pid: u32,
start_time: Timestamp
) -> ProcessHandle
pub fn set_process_start_time(
&mut self,
process: ProcessHandle,
start_time: Timestamp
)
pub fn set_process_end_time(
&mut self,
process: ProcessHandle,
end_time: Timestamp
)
pub fn set_process_name(&mut self, process: ProcessHandle, name: &str)
pub fn add_lib(&mut self, process: ProcessHandle, library: LibraryInfo)
pub fn unload_lib(&mut self, process: ProcessHandle, base_address: u64)
pub fn add_thread(
&mut self,
process: ProcessHandle,
tid: u32,
start_time: Timestamp,
is_main: bool
) -> ThreadHandle
pub fn set_thread_name(&mut self, thread: ThreadHandle, name: &str)
pub fn set_thread_start_time(
&mut self,
thread: ThreadHandle,
start_time: Timestamp
)
pub fn set_thread_end_time(&mut self, thread: ThreadHandle, end_time: Timestamp)
pub fn intern_string(&mut self, s: &str) -> StringHandle
pub fn add_sample(
&mut self,
thread: ThreadHandle,
timestamp: Timestamp,
frames: impl Iterator<Item = Frame>,
cpu_delta: CpuDelta,
weight: i32
)
pub fn add_sample_same_stack_zero_cpu(
&mut self,
thread: ThreadHandle,
timestamp: Timestamp,
weight: i32
)
sourcepub fn add_marker<T: ProfilerMarker>(
&mut self,
thread: ThreadHandle,
name: &str,
marker: T,
timing: MarkerTiming
)
pub fn add_marker<T: ProfilerMarker>(
&mut self,
thread: ThreadHandle,
name: &str,
marker: T,
timing: MarkerTiming
)
Main marker API to add a new marker to profiler buffer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more