LispBM
Macros | Functions | Variables
lbm_prof.c File Reference
#include "lbm_prof.h"
#include "platform_mutex.h"
Include dependency graph for lbm_prof.c:

Macros

#define TRUNC_SIZE(N)   (((N) > LBM_PROF_MAX_NAME_SIZE -1) ? LBM_PROF_MAX_NAME_SIZE-1 : N)
 

Functions

bool lbm_prof_init (lbm_prof_t *prof_data_buf, lbm_uint prof_data_buf_num)
 
lbm_uint lbm_prof_get_num_samples (void)
 
lbm_uint lbm_prof_get_num_system_samples (void)
 
lbm_uint lbm_prof_get_num_sleep_samples (void)
 
void lbm_prof_sample (void)
 

Variables

static lbm_uint num_samples = 0
 
static lbm_uint num_system_samples = 0
 
static lbm_uint num_sleep_samples = 0
 
eval_context_tctx_running
 
mutex_t qmutex
 
bool qmutex_initialized
 
volatile bool lbm_system_sleeping
 
static lbm_prof_tprof_data
 
static lbm_uint prof_data_num
 

Macro Definition Documentation

◆ TRUNC_SIZE

#define TRUNC_SIZE (   N)    (((N) > LBM_PROF_MAX_NAME_SIZE -1) ? LBM_PROF_MAX_NAME_SIZE-1 : N)

Function Documentation

◆ lbm_prof_get_num_samples()

lbm_uint lbm_prof_get_num_samples ( void  )

◆ lbm_prof_get_num_sleep_samples()

lbm_uint lbm_prof_get_num_sleep_samples ( void  )

◆ lbm_prof_get_num_system_samples()

lbm_uint lbm_prof_get_num_system_samples ( void  )

◆ lbm_prof_init()

bool lbm_prof_init ( lbm_prof_t prof_data_buf,
lbm_uint  prof_data_buf_num 
)

◆ lbm_prof_sample()

void lbm_prof_sample ( void  )

Variable Documentation

◆ ctx_running

eval_context_t* ctx_running

◆ lbm_system_sleeping

volatile bool lbm_system_sleeping

◆ num_samples

lbm_uint num_samples = 0
static

◆ num_sleep_samples

lbm_uint num_sleep_samples = 0
static

◆ num_system_samples

lbm_uint num_system_samples = 0
static

◆ prof_data

lbm_prof_t* prof_data
static

◆ prof_data_num

lbm_uint prof_data_num
static

◆ qmutex

mutex_t qmutex

◆ qmutex_initialized

bool qmutex_initialized