Struct lambda_extension::ReportMetrics
source · pub struct ReportMetrics {
pub duration_ms: f64,
pub billed_duration_ms: u64,
pub memory_size_mb: u64,
pub max_memory_used_mb: u64,
pub init_duration_ms: Option<f64>,
pub restore_duration_ms: Option<f64>,
}
Expand description
Report metrics
Fields
duration_ms: f64
Duration in milliseconds
billed_duration_ms: u64
Billed duration in milliseconds
memory_size_mb: u64
Memory allocated in megabytes
max_memory_used_mb: u64
Maximum memory used for the invoke in megabytes
init_duration_ms: Option<f64>
Init duration in case of a cold start
restore_duration_ms: Option<f64>
Restore duration in milliseconds
Trait Implementations
sourceimpl Clone for ReportMetrics
impl Clone for ReportMetrics
sourcefn clone(&self) -> ReportMetrics
fn clone(&self) -> ReportMetrics
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ReportMetrics
impl Debug for ReportMetrics
sourceimpl<'de> Deserialize<'de> for ReportMetrics
impl<'de> Deserialize<'de> for ReportMetrics
sourcefn 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
sourceimpl PartialEq<ReportMetrics> for ReportMetrics
impl PartialEq<ReportMetrics> for ReportMetrics
sourcefn eq(&self, other: &ReportMetrics) -> bool
fn eq(&self, other: &ReportMetrics) -> bool
impl StructuralPartialEq for ReportMetrics
Auto Trait Implementations
impl RefUnwindSafe for ReportMetrics
impl Send for ReportMetrics
impl Sync for ReportMetrics
impl Unpin for ReportMetrics
impl UnwindSafe for ReportMetrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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