pub struct PerformanceHotspot {
pub id: Uuid,
pub hotspot_type: HotspotType,
pub location: String,
pub severity: HotspotSeverity,
pub sample_count: u64,
pub cpu_percentage: f64,
pub average_time_us: u64,
pub memory_bytes: u64,
pub description: String,
pub recommendations: Vec<String>,
}
Expand description
Performance hotspot
Fields§
§id: Uuid
Hotspot ID
hotspot_type: HotspotType
Hotspot type
location: String
Function or location
severity: HotspotSeverity
Severity level
sample_count: u64
Sample count
cpu_percentage: f64
Percentage of total CPU time
average_time_us: u64
Average execution time
memory_bytes: u64
Memory usage
description: String
Description
recommendations: Vec<String>
Recommendations
Trait Implementations§
Source§impl Clone for PerformanceHotspot
impl Clone for PerformanceHotspot
Source§fn clone(&self) -> PerformanceHotspot
fn clone(&self) -> PerformanceHotspot
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 PerformanceHotspot
impl Debug for PerformanceHotspot
Source§impl<'de> Deserialize<'de> for PerformanceHotspot
impl<'de> Deserialize<'de> for PerformanceHotspot
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
Auto Trait Implementations§
impl Freeze for PerformanceHotspot
impl RefUnwindSafe for PerformanceHotspot
impl Send for PerformanceHotspot
impl Sync for PerformanceHotspot
impl Unpin for PerformanceHotspot
impl UnwindSafe for PerformanceHotspot
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