pub struct GasByFunction {
pub function: String,
pub call_count: u64,
pub avg_gas: u64,
pub total_gas: u64,
}Expand description
Gas usage breakdown by function.
Fields§
§function: StringFunction selector or name.
call_count: u64Number of calls.
avg_gas: u64Average gas per call.
total_gas: u64Total gas for this function.
Trait Implementations§
Source§impl Clone for GasByFunction
impl Clone for GasByFunction
Source§impl Debug for GasByFunction
impl Debug for GasByFunction
Source§impl<'de> Deserialize<'de> for GasByFunction
impl<'de> Deserialize<'de> for GasByFunction
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
Auto Trait Implementations§
impl Freeze for GasByFunction
impl RefUnwindSafe for GasByFunction
impl Send for GasByFunction
impl Sync for GasByFunction
impl Unpin for GasByFunction
impl UnsafeUnpin for GasByFunction
impl UnwindSafe for GasByFunction
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