Include dependency graph for stats.c:

Functions | |
| static int | CounterUpdate (vlc_object_t *p_handler, counter_t *p_counter, vlc_value_t val, vlc_value_t *new_val) |
| Update a statistics counter, according to its type If needed, perform a bit of computation (derivative, mostly) This function must be entered with stats handler lock. | |
| static void | TimerDump (vlc_object_t *p_this, counter_t *p_counter, bool) |
| counter_t * | __stats_CounterCreate (vlc_object_t *p_this, int i_type, int i_compute_type) |
| Create a statistics counter. | |
| int | __stats_Update (vlc_object_t *p_this, counter_t *p_counter, vlc_value_t val, vlc_value_t *val_new) |
| Update a counter element with new values. | |
| int | __stats_Get (vlc_object_t *p_this, counter_t *p_counter, vlc_value_t *val) |
| Get the aggregated value for a counter. | |
| input_stats_t * | stats_NewInputStats (input_thread_t *p_input) |
| void | stats_ComputeInputStats (input_thread_t *p_input, input_stats_t *p_stats) |
| void | stats_ReinitInputStats (input_stats_t *p_stats) |
| void | stats_DumpInputStats (input_stats_t *p_stats) |
| void | __stats_ComputeGlobalStats (vlc_object_t *p_obj, global_stats_t *p_stats) |
| void | __stats_TimerStart (vlc_object_t *p_obj, const char *psz_name, unsigned int i_id) |
| void | __stats_TimerStop (vlc_object_t *p_obj, unsigned int i_id) |
| void | __stats_TimerDump (vlc_object_t *p_obj, unsigned int i_id) |
| void | __stats_TimersDumpAll (vlc_object_t *p_obj) |
| void | __stats_TimerClean (vlc_object_t *p_obj, unsigned int i_id) |
| void | __stats_TimersCleanAll (vlc_object_t *p_obj) |
| void | stats_CounterClean (counter_t *p_c) |
| void __stats_ComputeGlobalStats | ( | vlc_object_t * | p_obj, | |
| global_stats_t * | p_stats | |||
| ) |
| counter_t* __stats_CounterCreate | ( | vlc_object_t * | p_this, | |
| int | i_type, | |||
| int | i_compute_type | |||
| ) |
Create a statistics counter.
| p_this | a VLC object | |
| i_type | the type of stored data. One of VLC_VAR_STRING, VLC_VAR_INTEGER, VLC_VAR_FLOAT | |
| i_compute_type | the aggregation type. One of STATS_LAST (always keep the last value), STATS_COUNTER (increment by the passed value), STATS_MAX (keep the maximum passed value), STATS_MIN, or STATS_DERIVATIVE (keep a time derivative of the value) |
| int __stats_Get | ( | vlc_object_t * | p_this, | |
| counter_t * | p_counter, | |||
| vlc_value_t * | val | |||
| ) |
Get the aggregated value for a counter.
| p_this | an object | |
| p_counter | the counter | |
| val | a pointer to an initialized vlc_value union. It will contain the retrieved value |
| void __stats_TimerClean | ( | vlc_object_t * | p_obj, | |
| unsigned int | i_id | |||
| ) |
| void __stats_TimerDump | ( | vlc_object_t * | p_obj, | |
| unsigned int | i_id | |||
| ) |
| void __stats_TimersCleanAll | ( | vlc_object_t * | p_obj | ) |
| void __stats_TimersDumpAll | ( | vlc_object_t * | p_obj | ) |
| void __stats_TimerStart | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name, | |||
| unsigned int | i_id | |||
| ) |
| void __stats_TimerStop | ( | vlc_object_t * | p_obj, | |
| unsigned int | i_id | |||
| ) |
| int __stats_Update | ( | vlc_object_t * | p_this, | |
| counter_t * | p_counter, | |||
| vlc_value_t | val, | |||
| vlc_value_t * | val_new | |||
| ) |
Update a counter element with new values.
| p_this | a VLC object | |
| p_counter | the counter to update | |
| val | the vlc_value union containing the new value to aggregate. For more information on how data is aggregated, |
| val_new | a pointer that will be filled with new data |
| static int CounterUpdate | ( | vlc_object_t * | p_handler, | |
| counter_t * | p_counter, | |||
| vlc_value_t | val, | |||
| vlc_value_t * | new_val | |||
| ) | [static] |
Update a statistics counter, according to its type If needed, perform a bit of computation (derivative, mostly) This function must be entered with stats handler lock.
| p_counter | the counter to update | |
| val | the "new" value |
| void stats_ComputeInputStats | ( | input_thread_t * | p_input, | |
| input_stats_t * | p_stats | |||
| ) |
| void stats_CounterClean | ( | counter_t * | p_c | ) |
| void stats_DumpInputStats | ( | input_stats_t * | p_stats | ) |
| input_stats_t* stats_NewInputStats | ( | input_thread_t * | p_input | ) |
| void stats_ReinitInputStats | ( | input_stats_t * | p_stats | ) |
| static void TimerDump | ( | vlc_object_t * | p_this, | |
| counter_t * | p_counter, | |||
| bool | ||||
| ) | [static] |
1.5.1