ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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 <libplatform/mutex.h>
16#include <stdint.h>
17
61
62// Statistics thread function
63void *stats_logger_thread(void *arg);
64
65// Global statistics
66extern server_stats_t g_stats;
67extern mutex_t g_stats_mutex;
68
69// Statistics functions
70int stats_init(void);
71void stats_cleanup(void);
72void update_server_stats(void);
73void log_server_stats(void);
unsigned long long uint64_t
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