Struct move_coverage::coverage_map::TraceMap
source · [−]pub struct TraceMap {
pub exec_maps: BTreeMap<String, Vec<TraceEntry>>,
}
Fields
exec_maps: BTreeMap<String, Vec<TraceEntry>>
Implementations
sourceimpl TraceMap
impl TraceMap
sourcepub fn update_from_trace_file<P: AsRef<Path>>(self, filename: P) -> Self
pub fn update_from_trace_file<P: AsRef<Path>>(self, filename: P) -> Self
Takes in a file containing a raw VM trace, and returns an updated coverage map.
pub fn from_trace_file<P: AsRef<Path>>(filename: P) -> Self
pub fn from_binary_file<P: AsRef<Path>>(filename: P) -> Self
pub fn insert(
&mut self,
exec_id: &str,
module_addr: AccountAddress,
module_name: Identifier,
func_name: Identifier,
pc: u64
)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TraceMap
impl<'de> Deserialize<'de> for TraceMap
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
Auto Trait Implementations
impl RefUnwindSafe for TraceMap
impl Send for TraceMap
impl Sync for TraceMap
impl Unpin for TraceMap
impl UnwindSafe for TraceMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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