xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Functions | Variables
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

#define MAX_ID   10

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()

void xine_profiler_start_count ( int id)

◆ xine_profiler_stop_count()

void xine_profiler_stop_count ( int id)

Variable Documentation

◆ profiler

xine_profiler_t profiler[10]
static

◆ profiler_lock

pthread_mutex_t profiler_lock = PTHREAD_MUTEX_INITIALIZER
static