pub struct ProfileSummary {
pub total_duration_us: f64,
pub kernel_count: usize,
pub kernel_time_us: f64,
pub memcpy_count: usize,
pub memcpy_time_us: f64,
pub sync_count: usize,
pub sync_time_us: f64,
pub kernel_breakdown: Vec<(String, f64, usize)>,
pub compute_utilization: f64,
}Expand description
Summary statistics from a profiling session.
Fields§
§total_duration_us: f64Total session duration in microseconds.
kernel_count: usizeNumber of kernel events.
kernel_time_us: f64Total kernel execution time in microseconds.
memcpy_count: usizeNumber of memcpy events.
memcpy_time_us: f64Total memcpy time in microseconds.
sync_count: usizeNumber of sync events.
sync_time_us: f64Total sync time in microseconds.
kernel_breakdown: Vec<(String, f64, usize)>Per-kernel breakdown: (name, total_us, invocation_count).
compute_utilization: f64Fraction of total time spent in kernels.
Implementations§
Source§impl ProfileSummary
impl ProfileSummary
Sourcepub fn format_report(&self) -> String
pub fn format_report(&self) -> String
Format a human-readable profiling report.
Trait Implementations§
Source§impl Clone for ProfileSummary
impl Clone for ProfileSummary
Source§fn clone(&self) -> ProfileSummary
fn clone(&self) -> ProfileSummary
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 moreAuto Trait Implementations§
impl Freeze for ProfileSummary
impl RefUnwindSafe for ProfileSummary
impl Send for ProfileSummary
impl Sync for ProfileSummary
impl Unpin for ProfileSummary
impl UnsafeUnpin for ProfileSummary
impl UnwindSafe for ProfileSummary
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