memory_profiler
interface is implemented by
processors that support memory profiling. The get
function returns the active profiler for the type of access
specified in the access argument. NULL or None is
returned if there is no active profiler for that type of access.
The set function installs prof as a profiler for the accesses of type access. The set functions returns true if the setting was successful, and false otherwise.
The get_granularity_log2 gets the 2 logarithm of the profiling granularity in bytes, for example it returns 10 if the granularity for profiling is 1 KiB.
SIM_INTERFACE(memory_profiler) { conf_object_t *(*get)(conf_object_t *obj, read_or_write_t access); bool (*set)(conf_object_t *obj, read_or_write_t access, conf_object_t *prof); int (*get_granularity_log2)(conf_object_t *obj); }; #define MEMORY_PROFILER_INTERFACE "memory_profiler"