pub struct FunctionMetrics<'a> {
pub filenames: Vec<&'a str>,
pub branches: Vec<Branch>,
pub count: u64,
pub name: &'a str,
pub regions: Vec<Region>,
}
Expand description
Metrics relate to one specific function.
Fields§
§filenames: Vec<&'a str>
Absolute file paths indexed via the file ids in branches
and regions
attribute.
branches: Vec<Branch>
Source code level branches in this function. File ids of the branches are indices into
the filenames
array.
count: u64
Number of times this function was called.
name: &'a str
Name of the function.
regions: Vec<Region>
The regions in this function. File ids of the regions are indices into
the filenames
array.
Trait Implementations§
Source§impl<'a> Debug for FunctionMetrics<'a>
impl<'a> Debug for FunctionMetrics<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for FunctionMetrics<'a>
impl<'de: 'a, 'a> Deserialize<'de> for FunctionMetrics<'a>
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<'a> PartialEq for FunctionMetrics<'a>
impl<'a> PartialEq for FunctionMetrics<'a>
impl<'a> StructuralPartialEq for FunctionMetrics<'a>
Auto Trait Implementations§
impl<'a> Freeze for FunctionMetrics<'a>
impl<'a> RefUnwindSafe for FunctionMetrics<'a>
impl<'a> Send for FunctionMetrics<'a>
impl<'a> Sync for FunctionMetrics<'a>
impl<'a> Unpin for FunctionMetrics<'a>
impl<'a> UnwindSafe for FunctionMetrics<'a>
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