wamr_sys

Function wasm_runtime_dump_pgo_prof_data_to_buf

Source
pub unsafe extern "C" fn wasm_runtime_dump_pgo_prof_data_to_buf(
    module_inst: wasm_module_inst_t,
    buf: *mut c_char,
    len: u32,
) -> u32
Expand description

Dump the LLVM PGO profile data to buffer

@param module_inst the WASM module instance @param buf buffer to store the dumped content @param len length of the buffer

@return bytes dumped to the buffer, 0 means error and data in buf may be invalid