ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
server_stats_t Struct Reference

Server performance statistics structure. 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

Server performance statistics structure.

Tracks comprehensive performance metrics for the ascii-chat server including frame processing rates, bandwidth usage, and performance counters.

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 47 of file stats.h.

Field Documentation

◆ avg_capture_fps

double server_stats_t::avg_capture_fps

Definition at line 52 of file stats.h.

Referenced by log_server_stats().

◆ avg_send_fps

double server_stats_t::avg_send_fps

Definition at line 53 of file stats.h.

Referenced by log_server_stats().

◆ bytes_sent

uint64_t server_stats_t::bytes_sent

Definition at line 51 of file stats.h.

◆ frames_captured

uint64_t server_stats_t::frames_captured

Definition at line 48 of file stats.h.

Referenced by log_server_stats(), and update_server_stats().

◆ frames_dropped

uint64_t server_stats_t::frames_dropped

Definition at line 50 of file stats.h.

Referenced by log_server_stats(), and update_server_stats().

◆ frames_sent

uint64_t server_stats_t::frames_sent

Definition at line 49 of file stats.h.

Referenced by log_server_stats(), and update_server_stats().


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