Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::vm::profile_instr_map::builder Struct Reference

#include <debug_info.hpp>

Public Member Functions

void on_code_start (const void *compiled_base, const void *wasm_code_start)
 
void on_function_start (const void *code_addr, const void *wasm_addr)
 
void on_instr_start (const void *code_addr, const void *wasm_addr)
 
void on_code_end (const void *code_addr, const void *wasm_addr)
 
void on_code_start (const void *compiled_base, const void *wasm_code_start)
 
void on_function_start (const void *code_addr, const void *wasm_addr)
 
void on_instr_start (const void *code_addr, const void *wasm_addr)
 
void on_code_end (const void *code_addr, const void *wasm_addr)
 

Public Attributes

const void * code_base = nullptr
 
const void * wasm_base = nullptr
 
const void * code_end = nullptr
 
std::vector< addr_entry > data
 

Detailed Description

Definition at line 30 of file debug_info.hpp.

Member Function Documentation

◆ on_code_end() [1/2]

void sysio::vm::profile_instr_map::builder::on_code_end ( const void * code_addr,
const void * wasm_addr )
inline

Definition at line 47 of file debug_info.hpp.

47 {
48 code_end = code_addr;
49 }

◆ on_code_end() [2/2]

void sysio::vm::profile_instr_map::builder::on_code_end ( const void * code_addr,
const void * wasm_addr )
inline

Definition at line 47 of file debug_info.hpp.

47 {
48 code_end = code_addr;
49 }

◆ on_code_start() [1/2]

void sysio::vm::profile_instr_map::builder::on_code_start ( const void * compiled_base,
const void * wasm_code_start )
inline

Definition at line 31 of file debug_info.hpp.

31 {
32 code_base = compiled_base;
33 wasm_base = wasm_code_start;
34 }

◆ on_code_start() [2/2]

void sysio::vm::profile_instr_map::builder::on_code_start ( const void * compiled_base,
const void * wasm_code_start )
inline

Definition at line 31 of file debug_info.hpp.

31 {
32 code_base = compiled_base;
33 wasm_base = wasm_code_start;
34 }

◆ on_function_start() [1/2]

void sysio::vm::profile_instr_map::builder::on_function_start ( const void * code_addr,
const void * wasm_addr )
inline

Definition at line 35 of file debug_info.hpp.

35 {
36 data.push_back({
37 static_cast<std::uint32_t>(reinterpret_cast<const char*>(code_addr) - reinterpret_cast<const char*>(code_base)),
38 static_cast<std::uint32_t>(reinterpret_cast<const char*>(wasm_addr) - reinterpret_cast<const char*>(wasm_base))
39 });
40 }

◆ on_function_start() [2/2]

void sysio::vm::profile_instr_map::builder::on_function_start ( const void * code_addr,
const void * wasm_addr )
inline

Definition at line 35 of file debug_info.hpp.

35 {
36 data.push_back({
37 static_cast<std::uint32_t>(reinterpret_cast<const char*>(code_addr) - reinterpret_cast<const char*>(code_base)),
38 static_cast<std::uint32_t>(reinterpret_cast<const char*>(wasm_addr) - reinterpret_cast<const char*>(wasm_base))
39 });
40 }

◆ on_instr_start() [1/2]

void sysio::vm::profile_instr_map::builder::on_instr_start ( const void * code_addr,
const void * wasm_addr )
inline

Definition at line 41 of file debug_info.hpp.

41 {
42 data.push_back({
43 static_cast<std::uint32_t>(reinterpret_cast<const char*>(code_addr) - reinterpret_cast<const char*>(code_base)),
44 static_cast<std::uint32_t>(reinterpret_cast<const char*>(wasm_addr) - reinterpret_cast<const char*>(wasm_base))
45 });
46 }

◆ on_instr_start() [2/2]

void sysio::vm::profile_instr_map::builder::on_instr_start ( const void * code_addr,
const void * wasm_addr )
inline

Definition at line 41 of file debug_info.hpp.

41 {
42 data.push_back({
43 static_cast<std::uint32_t>(reinterpret_cast<const char*>(code_addr) - reinterpret_cast<const char*>(code_base)),
44 static_cast<std::uint32_t>(reinterpret_cast<const char*>(wasm_addr) - reinterpret_cast<const char*>(wasm_base))
45 });
46 }

Member Data Documentation

◆ code_base

const void * sysio::vm::profile_instr_map::builder::code_base = nullptr

Definition at line 51 of file debug_info.hpp.

◆ code_end

const void * sysio::vm::profile_instr_map::builder::code_end = nullptr

Definition at line 53 of file debug_info.hpp.

◆ data

std::vector< addr_entry > sysio::vm::profile_instr_map::builder::data

Definition at line 54 of file debug_info.hpp.

◆ wasm_base

const void * sysio::vm::profile_instr_map::builder::wasm_base = nullptr

Definition at line 52 of file debug_info.hpp.


The documentation for this struct was generated from the following files: