Struct wasmtime_jit_debug::perf_jitdump::JitDumpFile

source ·
pub struct JitDumpFile { /* private fields */ }
Expand description

Interface for driving the creation of jitdump files

Implementations§

source§

impl JitDumpFile

source

pub fn new(filename: impl AsRef<Path>, e_machine: u32) -> Result<Self>

Intialize a JitDumpAgent and write out the header

source§

impl JitDumpFile

source

pub fn get_time_stamp(&self) -> u64

Returns timestamp from a single source

source

pub fn next_code_index(&mut self) -> u64

Returns the next code index

source

pub fn write_file_header(&mut self) -> Result<()>

source

pub fn write_code_load_record( &mut self, record_name: &str, cl_record: CodeLoadRecord, code_buffer: &[u8], ) -> Result<()>

source

pub fn write_debug_info_record( &mut self, dir_record: DebugInfoRecord, ) -> Result<()>

Write DebugInfoRecord to open jit dump file. Must be written before the corresponding CodeLoadRecord.

source

pub fn write_debug_info_entries( &mut self, die_entries: Vec<DebugEntry>, ) -> Result<()>

Write DebugInfoRecord to open jit dump file. Must be written before the corresponding CodeLoadRecord.

source

pub fn dump_code_load_record( &mut self, method_name: &str, addr: *const u8, len: usize, timestamp: u64, pid: u32, tid: u32, ) -> Result<()>

Trait Implementations§

source§

impl Drop for JitDumpFile

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.