pub struct Hot {Show 17 fields
pub name: String,
pub file: String,
pub line: u32,
pub unit: Option<String>,
pub exported: bool,
pub self_ms: f64,
pub total_ms: f64,
pub total_pct: f64,
pub calls: Option<u64>,
pub ns_per_call: Option<f64>,
pub callers: Vec<Caller>,
pub advice: String,
pub portable: bool,
pub js_only: Option<String>,
pub params: Vec<String>,
pub batch: Option<String>,
pub child_pct: Option<f64>,
}Fields§
§name: String§file: String§line: u32§unit: Option<String>The analyzed unit holding the function, and whether the unit exports it.
exported: bool§self_ms: f64§total_ms: f64§total_pct: f64§calls: Option<u64>§ns_per_call: Option<f64>§callers: Vec<Caller>§advice: String§portable: boolThe unit may move to Rust (not marked keep or blocked).
js_only: Option<String>Why bridge keeps this exported function in the source language (a callback, a RegExp,
a generator…), judged by the same rules bridge applies. go never picks it.
params: Vec<String>Parameters of the exported function.
batch: Option<String>function:param for bridge --batch when the advice is to batch it.
child_pct: Option<f64>Share of this function’s time spent waiting on child processes it started, itself or
through the functions it calls. go passes over a function that mostly waits.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Hot
impl Freeze for Hotwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Caller>: Freeze,
PhantomData<String>: Freeze,
impl Move for Hot
impl RefUnwindSafe for Hot
impl Send for Hotwhere
RawVecInner: Send,
impl Sync for Hotwhere
RawVecInner: Sync,
impl Unpin for Hot
impl UnsafeUnpin for Hotwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Caller>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Hotwhere
RawVecInner: UnwindSafe,
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