ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
src/server/stats.h
Go to the documentation of this file.
1#pragma once
2
14
15#include <stdint.h>
16#include <libplatform/mutex.h>
17
60
61// Statistics thread function
62void *stats_logger_thread(void *arg);
63
64// Global statistics
65extern server_stats_t g_stats;
66extern mutex_t g_stats_mutex;
67
68// Statistics functions
69int stats_init(void);
70void stats_cleanup(void);
71void update_server_stats(void);
72void log_server_stats(void);
unsigned long long uint64_t
Definition common.h:63
mutex_t g_stats_mutex
Mutex protecting global server statistics.
void log_server_stats(void)
Log comprehensive server statistics summary.
void * stats_logger_thread(void *arg)
Main statistics collection and reporting thread function.
int stats_init(void)
Initialize the stats mutex.
void stats_cleanup(void)
Cleanup the stats mutex.
void update_server_stats(void)
Counters and rates describing the server's media pipeline.
uint64_t frames_dropped
uint64_t frames_captured