pub struct HashMapParser {
pub project_root: PathBuf,
pub sentinel: Option<Sentinel>,
}
Available on crate feature
runner
only.Expand description
Parse a callgrind outfile into a HashMap
This parser is a based on callgrind_annotate
and how it summarizes the inclusive costs.
Fields§
§project_root: PathBuf
The project root directory required to make paths relative
sentinel: Option<Sentinel>
Look for this Sentinel
in the output files
Trait Implementations§
Source§impl CallgrindParser for HashMapParser
impl CallgrindParser for HashMapParser
Source§type Output = CallgrindMap
type Output = CallgrindMap
The output of the parser
Source§fn parse_single(
&self,
path: &Path,
) -> Result<(CallgrindProperties, Self::Output)>
fn parse_single( &self, path: &Path, ) -> Result<(CallgrindProperties, Self::Output)>
Parse a single callgrind output file
Source§fn parse(
&self,
output: &ToolOutputPath,
) -> Result<Vec<(PathBuf, CallgrindProperties, Self::Output)>>
fn parse( &self, output: &ToolOutputPath, ) -> Result<Vec<(PathBuf, CallgrindProperties, Self::Output)>>
Parse all callgrind output files of this
ToolOutputPath
Source§impl Debug for HashMapParser
impl Debug for HashMapParser
Source§impl Default for HashMapParser
impl Default for HashMapParser
Source§fn default() -> HashMapParser
fn default() -> HashMapParser
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HashMapParser
impl<'de> Deserialize<'de> for HashMapParser
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 PartialEq for HashMapParser
impl PartialEq for HashMapParser
Source§impl Serialize for HashMapParser
impl Serialize for HashMapParser
impl Eq for HashMapParser
impl StructuralPartialEq for HashMapParser
Auto Trait Implementations§
impl Freeze for HashMapParser
impl RefUnwindSafe for HashMapParser
impl Send for HashMapParser
impl Sync for HashMapParser
impl Unpin for HashMapParser
impl UnwindSafe for HashMapParser
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more