pub struct Hotspot {
pub identifier: String,
pub time_percentage: f64,
pub execution_count: usize,
pub avg_time_us: f64,
pub suggestions: Vec<String>,
}Expand description
Hotspot in the computation graph.
Fields§
§identifier: StringNode or operation identifier
time_percentage: f64Percentage of total execution time
execution_count: usizeNumber of executions
avg_time_us: f64Average time per execution (microseconds)
suggestions: Vec<String>Optimization suggestions
Implementations§
Source§impl Hotspot
impl Hotspot
Sourcepub fn is_critical(&self) -> bool
pub fn is_critical(&self) -> bool
Check if this is a critical hotspot (>10% of time).
Sourcepub fn total_time_us(&self) -> f64
pub fn total_time_us(&self) -> f64
Get total time spent (microseconds).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hotspot
impl<'de> Deserialize<'de> for Hotspot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Hotspot
Auto Trait Implementations§
impl Freeze for Hotspot
impl RefUnwindSafe for Hotspot
impl Send for Hotspot
impl Sync for Hotspot
impl Unpin for Hotspot
impl UnwindSafe for Hotspot
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