1 | /* $XFree86$ */
|
---|
2 | /*
|
---|
3 | * Copyright 2002 Red Hat Inc., Durham, North Carolina.
|
---|
4 | *
|
---|
5 | * All Rights Reserved.
|
---|
6 | *
|
---|
7 | * Permission is hereby granted, free of charge, to any person obtaining
|
---|
8 | * a copy of this software and associated documentation files (the
|
---|
9 | * "Software"), to deal in the Software without restriction, including
|
---|
10 | * without limitation on the rights to use, copy, modify, merge,
|
---|
11 | * publish, distribute, sublicense, and/or sell copies of the Software,
|
---|
12 | * and to permit persons to whom the Software is furnished to do so,
|
---|
13 | * subject to the following conditions:
|
---|
14 | *
|
---|
15 | * The above copyright notice and this permission notice (including the
|
---|
16 | * next paragraph) shall be included in all copies or substantial
|
---|
17 | * portions of the Software.
|
---|
18 | *
|
---|
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
---|
20 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
---|
22 | * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
|
---|
23 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
---|
24 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
25 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
---|
26 | * SOFTWARE.
|
---|
27 | */
|
---|
28 |
|
---|
29 | /*
|
---|
30 | * Authors:
|
---|
31 | * Rickard E. (Rik) Faith <[email protected]>
|
---|
32 | *
|
---|
33 | */
|
---|
34 |
|
---|
35 | /** \file
|
---|
36 | * Interface for statistic gathering interface. \see dmxstat.c */
|
---|
37 |
|
---|
38 | #ifndef _DMXSTAT_H_
|
---|
39 | #define _DMXSTAT_H_
|
---|
40 |
|
---|
41 | #define DMX_STAT_LENGTH 10 /**< number of events for moving average */
|
---|
42 | #define DMX_STAT_INTERVAL 1000 /**< msec between printouts */
|
---|
43 | #define DMX_STAT_BINS 3 /**< number of bins */
|
---|
44 | #define DMX_STAT_BIN0 10000 /**< us for bin[0] */
|
---|
45 | #define DMX_STAT_BINMULT 100 /**< multiplier for next bin[] */
|
---|
46 |
|
---|
47 | extern int dmxStatInterval; /**< Only for dmxstat.c and dmxsync.c */
|
---|
48 | extern void dmxStatActivate(const char *interval, const char *displays);
|
---|
49 | extern DMXStatInfo *dmxStatAlloc(void);
|
---|
50 | extern void dmxStatFree(DMXStatInfo *);
|
---|
51 | extern void dmxStatInit(void);
|
---|
52 | extern void dmxStatSync(DMXScreenInfo *dmxScreen,
|
---|
53 | struct timeval *stop, struct timeval *start,
|
---|
54 | unsigned long pending);
|
---|
55 |
|
---|
56 | #endif
|
---|