ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
server_stats_t Struct Reference

Counters and rates describing the server's media pipeline. More...

#include <src/server/stats.h>

Data Fields

uint64_t frames_captured
uint64_t frames_sent
uint64_t frames_dropped
uint64_t bytes_sent
double avg_capture_fps
double avg_send_fps

Detailed Description

Counters and rates describing the server's media pipeline.

The counters cover captured, delivered, and dropped frames plus total outbound bytes. The two rates are rolling capture and send FPS values used by the logger and status reporting; callers read and update the global instance while holding g_stats_mutex.

STATISTICS TRACKED:

  • frames_captured: Total frames captured from webcam/sources
  • frames_sent: Total frames sent to all clients
  • frames_dropped: Total frames dropped (backpressure, timeout, etc.)
  • bytes_sent: Total bytes transmitted (network bandwidth)
  • avg_capture_fps: Average frame capture rate (frames per second)
  • avg_send_fps: Average frame send rate (frames per second)

PERFORMANCE METRICS:

These statistics enable:

  • Performance monitoring and analysis
  • Bottleneck identification
  • Capacity planning
  • Quality of service metrics
Note
Statistics are updated atomically for thread-safe access.
Rates (avg_capture_fps, avg_send_fps) are calculated over time windows.
Frame drop rate = frames_dropped / frames_captured (when frames_captured > 0)

Definition at line 49 of file src/server/stats.h.

Field Documentation

◆ avg_capture_fps

double server_stats_t::avg_capture_fps

Definition at line 54 of file src/server/stats.h.

◆ avg_send_fps

double server_stats_t::avg_send_fps

Definition at line 55 of file src/server/stats.h.

◆ bytes_sent

uint64_t server_stats_t::bytes_sent

Definition at line 53 of file src/server/stats.h.

◆ frames_captured

uint64_t server_stats_t::frames_captured

Definition at line 50 of file src/server/stats.h.

◆ frames_dropped

uint64_t server_stats_t::frames_dropped

Definition at line 52 of file src/server/stats.h.

◆ frames_sent

uint64_t server_stats_t::frames_sent

Definition at line 51 of file src/server/stats.h.


The documentation for this struct was generated from the following file: