RTS API Documentation
1.10.11
|
Go to the source code of this file.
Typedefs | |
typedef struct profile_timer | switch_profile_timer_t |
Functions | |
switch_profile_timer_t * | switch_new_profile_timer (void) |
create a new profile timer More... | |
switch_bool_t | switch_get_system_idle_time (switch_profile_timer_t *p, double *idle_percentage) |
provides the percentage of idle system time More... | |
void | switch_delete_profile_timer (switch_profile_timer_t **p) |
Deletes profile timer. More... | |
typedef struct profile_timer switch_profile_timer_t |
Definition at line 37 of file switch_profile.h.
void switch_delete_profile_timer | ( | switch_profile_timer_t ** | p | ) |
Deletes profile timer.
Definition at line 327 of file switch_profile.c.
Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().
switch_bool_t switch_get_system_idle_time | ( | switch_profile_timer_t * | p, |
double * | idle_percentage | ||
) |
provides the percentage of idle system time
p | profile timer structure previously created with new_profile_timer |
pointer | to store the percentage of idle time |
Definition at line 296 of file switch_profile.c.
References SWITCH_FALSE.
Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().
switch_profile_timer_t* switch_new_profile_timer | ( | void | ) |
create a new profile timer
Definition at line 304 of file switch_profile.c.
References profile_timer::cpu_idle_smoothing_depth, switch_runtime::cpu_idle_smoothing_depth, profile_timer::percentage_of_idle_time_ring, runtime, and switch_assert.
Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().