This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedefs | |
| typedef profile_timer | switch_profile_timer_t |
Functions | |
| switch_profile_timer_t * | switch_new_profile_timer (void) |
| create a new profile timer | |
| switch_bool_t | switch_get_system_idle_time (switch_profile_timer_t *p, double *idle_percentage) |
| provides the percentage of idle system time | |
| void | switch_delete_profile_timer (switch_profile_timer_t **p) |
| Deletes profile timer. | |
| 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 278 of file switch_profile.c.
Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().
00279 { 00280 if (!p) return; 00281 00282 #ifdef __linux__ 00283 close((*p)->procfd); 00284 #endif 00285 free(*p); 00286 *p = NULL; 00287 }
| 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 265 of file switch_profile.c.
References SWITCH_FALSE.
Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().
00266 { 00267 *idle_percentage = 100.0; 00268 return SWITCH_FALSE; 00269 }
| switch_profile_timer_t* switch_new_profile_timer | ( | void | ) |
create a new profile timer
Definition at line 273 of file switch_profile.c.
Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().
00274 { 00275 return calloc(1, sizeof(switch_profile_timer_t)); 00276 }
1.4.7