pub struct FunctionSummary {
pub blocks_count: usize,
pub blocks_executed: usize,
pub entry_count: u64,
pub exit_count: u64,
pub branches_count: usize,
pub branches_executed: usize,
pub branches_taken: usize,
}Expand description
Statistical summary of a function.
Fields§
§blocks_count: usizeNumber of basic blocks in the function (excluding the enter- and exit-blocks).
blocks_executed: usizeNumber of basic blocks that has been executed (having non-zero count).
entry_count: u64How many times the function is called.
exit_count: u64How many times the function has returned.
branches_count: usizeNumber of conditional branches in the function.
branches_executed: usizeNumber of conditional basic blocks that has been executed.
branches_taken: usizeNumber of branches that has been taken.
Trait Implementations§
Source§impl Clone for FunctionSummary
impl Clone for FunctionSummary
Source§fn clone(&self) -> FunctionSummary
fn clone(&self) -> FunctionSummary
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 FunctionSummary
impl Debug for FunctionSummary
Source§impl Default for FunctionSummary
impl Default for FunctionSummary
Source§fn default() -> FunctionSummary
fn default() -> FunctionSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FunctionSummary
impl<'de> Deserialize<'de> for FunctionSummary
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 Hash for FunctionSummary
impl Hash for FunctionSummary
Source§impl PartialEq for FunctionSummary
impl PartialEq for FunctionSummary
Source§impl Serialize for FunctionSummary
impl Serialize for FunctionSummary
Source§impl SerializeWithInterner for FunctionSummary
Available on crate feature serde only.
impl SerializeWithInterner for FunctionSummary
Available on crate feature
serde only.Source§fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
_: &Interner,
) -> Result<S::Ok, S::Error>
fn serialize_with_interner<S: Serializer>( &self, serializer: S, _: &Interner, ) -> Result<S::Ok, S::Error>
Source§fn with_interner<'si>(
&self,
interner: &'si Interner,
) -> WithInterner<'si, &Self>
fn with_interner<'si>( &self, interner: &'si Interner, ) -> WithInterner<'si, &Self>
Adorns this object with a string interner. Read more
impl Copy for FunctionSummary
impl Eq for FunctionSummary
impl StructuralPartialEq for FunctionSummary
Auto Trait Implementations§
impl Freeze for FunctionSummary
impl RefUnwindSafe for FunctionSummary
impl Send for FunctionSummary
impl Sync for FunctionSummary
impl Unpin for FunctionSummary
impl UnwindSafe for FunctionSummary
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