#include "dmx.h"
#include "dmxstat.h"
#include "dmxlog.h"
#include "Xos.h"
Data Structures | |
struct | _DMXStatAvg |
struct | _DMXStatInfo |
Typedefs | |
typedef _DMXStatAvg | DMXStatAvg |
Functions | |
void | dmxStatActivate (const char *interval, const char *displays) |
DMXStatInfo * | dmxStatAlloc (void) |
void | dmxStatFree (DMXStatInfo *pt) |
void | dmxStatSync (DMXScreenInfo *dmxScreen, struct timeval *stop, struct timeval *start, unsigned long pending) |
void | dmxStatInit (void) |
Variables | |
int | dmxStatInterval |
|
Used to compute a running average of value. |
|
Turn on XSync statistic gathering and printing. Print every interval seconds, with lines for the first displays. If interval is NULL, 1 will be used. If displays is NULL, 0 will be used (meaning a line for every display will be printed). Note that this function takes string arguments because it will usually be called from ddxProcessArgument in #dmxinit.c. |
|
Allocate a DMXStatInfo structure. |
|
Free the memory used by a DMXStatInfo structure. |
|
Try to initialize the statistic gathering and printing routines. Initialization only takes place if dmxStatActivate has already been called. We don't need the same generation protection that we used in dmxSyncInit because our timer is always on a queue -- hence, server generation will always free it. |
|
Note that a XSync() was just done on dmxScreen with the start and stop times (from gettimeofday()) and the number of pending-but-not-yet-processed XSync requests. This routine is called from #dmxDoSync in #dmxsync.c |
|