pub struct ProfilingStats {
pub average_coverage_percentage: f64,
pub duration_stats: HashMap<String, f64>,
pub languages: Vec<String>,
pub total_execution_paths: i64,
pub total_files_covered: i64,
pub total_traces: i64,
pub use_cases: Vec<String>,
}Expand description
Statistics for a profiling session or trace.
JSON schema
{
"title": "ProfilingStats",
"description": "Statistics for a profiling session or trace.",
"type": "object",
"required": [
"average_coverage_percentage",
"duration_stats",
"languages",
"total_execution_paths",
"total_files_covered",
"total_traces",
"use_cases"
],
"properties": {
"average_coverage_percentage": {
"title": "Average Coverage Percentage",
"type": "number"
},
"duration_stats": {
"title": "Duration Stats",
"description": "Min, max, avg, median duration in milliseconds",
"type": "object",
"additionalProperties": {
"type": "number"
}
},
"languages": {
"title": "Languages",
"type": "array",
"items": {
"type": "string"
}
},
"total_execution_paths": {
"title": "Total Execution Paths",
"type": "integer"
},
"total_files_covered": {
"title": "Total Files Covered",
"type": "integer"
},
"total_traces": {
"title": "Total Traces",
"type": "integer"
},
"use_cases": {
"title": "Use Cases",
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields§
§average_coverage_percentage: f64§duration_stats: HashMap<String, f64>Min, max, avg, median duration in milliseconds
languages: Vec<String>§total_execution_paths: i64§total_files_covered: i64§total_traces: i64§use_cases: Vec<String>Implementations§
Source§impl ProfilingStats
impl ProfilingStats
pub fn builder() -> ProfilingStats
Trait Implementations§
Source§impl Clone for ProfilingStats
impl Clone for ProfilingStats
Source§fn clone(&self) -> ProfilingStats
fn clone(&self) -> ProfilingStats
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 ProfilingStats
impl Debug for ProfilingStats
Source§impl<'de> Deserialize<'de> for ProfilingStats
impl<'de> Deserialize<'de> for ProfilingStats
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
Source§impl From<&ProfilingStats> for ProfilingStats
impl From<&ProfilingStats> for ProfilingStats
Source§fn from(value: &ProfilingStats) -> Self
fn from(value: &ProfilingStats) -> Self
Converts to this type from the input type.
Source§impl From<ProfilingStats> for ProfilingStats
impl From<ProfilingStats> for ProfilingStats
Source§fn from(value: ProfilingStats) -> Self
fn from(value: ProfilingStats) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProfilingStats
impl Serialize for ProfilingStats
Source§impl TryFrom<ProfilingStats> for ProfilingStats
impl TryFrom<ProfilingStats> for ProfilingStats
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProfilingStats) -> Result<Self, ConversionError>
fn try_from(value: ProfilingStats) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProfilingStats
impl RefUnwindSafe for ProfilingStats
impl Send for ProfilingStats
impl Sync for ProfilingStats
impl Unpin for ProfilingStats
impl UnwindSafe for ProfilingStats
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