head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.31; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.31; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.21; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.51; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @
Go to the source code of this file.
Defines | |
| #define | DMX_STAT_LENGTH 10 |
| #define | DMX_STAT_INTERVAL 1000 |
| #define | DMX_STAT_BINS 3 |
| #define | DMX_STAT_BIN0 10000 |
| #define | DMX_STAT_BINMULT 100 |
Functions | |
| void | dmxStatActivate (const char *interval, const char *displays) |
| DMXStatInfo * | dmxStatAlloc (void) |
| void | dmxStatFree (DMXStatInfo *) |
| void | dmxStatInit (void) |
| void | dmxStatSync (DMXScreenInfo *dmxScreen, struct timeval *stop, struct timeval *start, unsigned long pending) |
Variables | |
| int | dmxStatInterval |
|
|
us for bin[0] |
|
|
multiplier for next bin[] |
|
|
number of bins |
|
|
msec between printouts |
|
|
number of events for moving average |
|
||||||||||||
|
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 |
|
Go to the source code of this file.
Defines | |
| #define | DMX_STAT_LENGTH 10 |
| #define | DMX_STAT_INTERVAL 1000 |
| #define | DMX_STAT_BINS 3 |
| #define | DMX_STAT_BIN0 10000 |
| #define | DMX_STAT_BINMULT 100 |
Functions | |
| void | dmxStatActivate (const char *interval, const char *displays) |
| DMXStatInfo * | dmxStatAlloc (void) |
| void | dmxStatFree (DMXStatInfo *) |
| void | dmxStatInit (void) |
| void | dmxStatSync (DMXScreenInfo *dmxScreen, struct timeval *stop, struct timeval *start, unsigned long pending) |
Variables | |
| int | dmxStatInterval |
Interface for statistic gathering interface.
| #define DMX_STAT_BIN0 10000 |
us for bin[0]
Referenced by dmxStatSync().
| #define DMX_STAT_BINMULT 100 |
multiplier for next bin[]
| #define DMX_STAT_BINS 3 |
number of bins
Referenced by dmxStatSync().
| #define DMX_STAT_INTERVAL 1000 |
msec between printouts
| #define DMX_STAT_LENGTH 10 |
number of events for moving average
Referenced by dmxStatValue().
| void dmxStatActivate | ( | const char * | interval, | a166 1d168 3 a170 2 | const char * | displays | d174 2 a175 2 | ) | d177 1 d179 26 a204 21 |
| DMXStatInfo* dmxStatAlloc | ( | void | ) | d206 1 d208 26 a233 19 |
| void dmxStatFree | ( | DMXStatInfo * | pt | ) | d235 1 d237 26 a262 19 |
| void dmxStatInit | ( | void | ) | d264 1 d266 24 a289 19 |
| void dmxStatSync | ( | DMXScreenInfo * | dmxScreen, | a291 1d293 3 a295 2 | struct timeval * | stop, | a297 1d299 3 a301 2 | struct timeval * | start, | a303 1d305 3 a307 2 | unsigned long | pending | d311 2 a312 2 | ) | d314 1 d316 20 a335 15 |
| int dmxStatInterval | d339 14 a352 9