Struct simics_api_sys::data_profiler_interface
source · #[repr(C)]pub struct data_profiler_interface {
pub accum_in_range: Option<unsafe extern "C" fn(profiler: *mut conf_object_t, start: uint64, end: uint64) -> uint64>,
pub save: Option<unsafe extern "C" fn(profiler: *mut conf_object_t, file: *const c_char)>,
pub load: Option<unsafe extern "C" fn(profiler: *mut conf_object_t, file: *const c_char)>,
pub clear: Option<unsafe extern "C" fn(profiler: *mut conf_object_t)>,
pub get_prof_data: Option<unsafe extern "C" fn(profiler: *mut conf_object_t) -> *mut c_void>,
}
Fields§
§accum_in_range: Option<unsafe extern "C" fn(profiler: *mut conf_object_t, start: uint64, end: uint64) -> uint64>
computes the sum of all counters in an address range, from start to end, inclusive. This function is deprecated; you should use the functions of the address_profiler interface instead.
save: Option<unsafe extern "C" fn(profiler: *mut conf_object_t, file: *const c_char)>
write the profiling data to a file
load: Option<unsafe extern "C" fn(profiler: *mut conf_object_t, file: *const c_char)>
read profiling data from a file, and adds it to whatever data was already present in the profiler.
clear: Option<unsafe extern "C" fn(profiler: *mut conf_object_t)>
resets all counters in the profiler to zero.
get_prof_data: Option<unsafe extern "C" fn(profiler: *mut conf_object_t) -> *mut c_void>
actually returns a prof_data_t*
Trait Implementations§
source§impl Clone for data_profiler_interface
impl Clone for data_profiler_interface
source§fn clone(&self) -> data_profiler_interface
fn clone(&self) -> data_profiler_interface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for data_profiler_interface
impl Debug for data_profiler_interface
source§impl Default for data_profiler_interface
impl Default for data_profiler_interface
source§fn default() -> data_profiler_interface
fn default() -> data_profiler_interface
Returns the “default value” for a type. Read more
source§impl Hash for data_profiler_interface
impl Hash for data_profiler_interface
source§impl Ord for data_profiler_interface
impl Ord for data_profiler_interface
source§fn cmp(&self, other: &data_profiler_interface) -> Ordering
fn cmp(&self, other: &data_profiler_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for data_profiler_interface
impl PartialEq for data_profiler_interface
source§impl PartialOrd for data_profiler_interface
impl PartialOrd for data_profiler_interface
impl Copy for data_profiler_interface
impl Eq for data_profiler_interface
impl StructuralPartialEq for data_profiler_interface
Auto Trait Implementations§
impl Freeze for data_profiler_interface
impl RefUnwindSafe for data_profiler_interface
impl Send for data_profiler_interface
impl Sync for data_profiler_interface
impl Unpin for data_profiler_interface
impl UnwindSafe for data_profiler_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)