xine-lib 1.2.13-20230125hg15249
monitor.c File Reference
#include <stdio.h>
#include <pthread.h>
#include <sys/time.h>
#include <xine/xineutils.h>

Data Structures

struct  xine_profiler_t
 

Macros

#define MAX_ID   10
 

Functions

void xine_profiler_init ()
 
int xine_profiler_allocate_slot (const char *label)
 
void xine_profiler_start_count (int id)
 
void xine_profiler_stop_count (int id)
 
void xine_profiler_print_results (void)
 

Variables

static xine_profiler_t profiler [10]
 
static pthread_mutex_t profiler_lock = PTHREAD_MUTEX_INITIALIZER
 

Macro Definition Documentation

◆ MAX_ID

Function Documentation

◆ xine_profiler_allocate_slot()

int xine_profiler_allocate_slot ( const char * label)

◆ xine_profiler_init()

void xine_profiler_init ( void )

References profiler, and profiler_lock.

◆ xine_profiler_print_results()

void xine_profiler_print_results ( void )

◆ xine_profiler_start_count()

◆ xine_profiler_stop_count()

Variable Documentation

◆ profiler

◆ profiler_lock

pthread_mutex_t profiler_lock = PTHREAD_MUTEX_INITIALIZER
static