pub struct Profiler;
Expand description
Placeholder profiler.
Implementations§
source§impl Profiler
impl Profiler
sourcepub fn set_coverage(&mut self, _location: InstructionLocation)
pub fn set_coverage(&mut self, _location: InstructionLocation)
Set the current coverage location.
sourcepub fn add_gas(&mut self, _location: InstructionLocation, _gas_use: u64)
pub fn add_gas(&mut self, _location: InstructionLocation, _gas_use: u64)
Add gas to the current coverage location.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Profiler
impl Send for Profiler
impl Sync for Profiler
impl Unpin for Profiler
impl UnwindSafe for Profiler
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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