pub struct ProfileSession {
pub name: String,
pub start_time: DateTime<Utc>,
pub end_time: Option<DateTime<Utc>>,
pub duration_ms: Option<i64>,
pub memory_start: u64,
pub memory_end: Option<u64>,
pub memory_delta: Option<i64>,
pub cpu_usage: Option<f32>,
pub metrics: HashMap<String, f64>,
}Expand description
Profile session
Fields§
§name: StringSession name
start_time: DateTime<Utc>Start time
end_time: Option<DateTime<Utc>>End time
duration_ms: Option<i64>Duration in milliseconds
memory_start: u64Memory at start (bytes)
memory_end: Option<u64>Memory at end (bytes)
memory_delta: Option<i64>Memory delta (bytes)
cpu_usage: Option<f32>CPU usage percentage
metrics: HashMap<String, f64>Custom metrics
Trait Implementations§
Source§impl Clone for ProfileSession
impl Clone for ProfileSession
Source§fn clone(&self) -> ProfileSession
fn clone(&self) -> ProfileSession
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 ProfileSession
impl Debug for ProfileSession
Source§impl<'de> Deserialize<'de> for ProfileSession
impl<'de> Deserialize<'de> for ProfileSession
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 ProfileSession
impl RefUnwindSafe for ProfileSession
impl Send for ProfileSession
impl Sync for ProfileSession
impl Unpin for ProfileSession
impl UnsafeUnpin for ProfileSession
impl UnwindSafe for ProfileSession
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