[BACK]Return to stats.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Annotation of src/usr.bin/make/stats.h, Revision 1.1

1.1     ! espie       1: /* $OpenPackages$ */
        !             2: /* $OpenBSD$ */
        !             3:
        !             4: /*
        !             5:  * Copyright (c) 1999 Marc Espie.
        !             6:  *
        !             7:  * Code written for the OpenBSD project.
        !             8:  *
        !             9:  * Redistribution and use in source and binary forms, with or without
        !            10:  * modification, are permitted provided that the following conditions
        !            11:  * are met:
        !            12:  * 1. Redistributions of source code must retain the above copyright
        !            13:  *    notice, this list of conditions and the following disclaimer.
        !            14:  * 2. Redistributions in binary form must reproduce the above copyright
        !            15:  *    notice, this list of conditions and the following disclaimer in the
        !            16:  *    documentation and/or other materials provided with the distribution.
        !            17:  *
        !            18:  * THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS
        !            19:  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
        !            20:  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
        !            21:  * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OPENBSD
        !            22:  * PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
        !            23:  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
        !            24:  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            25:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            26:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !            27:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        !            28:  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !            29:  */
        !            30:
        !            31: /* statistical information gathering */
        !            32:
        !            33: #if defined(STATS_VAR_LOOKUP) || \
        !            34:        defined(STATS_GN_CREATION) || \
        !            35:        defined(STATS_BUF) || \
        !            36:        defined(STATS_HASH)
        !            37: #define HAS_STATS
        !            38: #endif
        !            39:
        !            40: #ifdef HAS_STATS
        !            41: extern unsigned long *statarray;
        !            42: #define STAT_INVOCATIONS        statarray[0]
        !            43: #define STAT_VAR_SEARCHES       statarray[1]
        !            44: #define STAT_VAR_COUNT          statarray[2]
        !            45: #define STAT_VAR_MAXCOUNT       statarray[3]
        !            46: #define STAT_GN_COUNT           statarray[4]
        !            47: #define STAT_TOTAL_BUFS         statarray[5]
        !            48: #define STAT_DEFAULT_BUFS       statarray[6]
        !            49: #define STAT_WEIRD_BUFS         statarray[7]
        !            50: #define STAT_BUFS_EXPANSION     statarray[8]
        !            51: #define STAT_WEIRD_INEFFICIENT  statarray[9]
        !            52: #define STAT_VAR_HASH_CREATION statarray[10]
        !            53: #define STAT_VAR_FROM_ENV      statarray[11]
        !            54: #define STAT_VAR_CREATION      statarray[12]
        !            55: #define STAT_VAR_FIND          statarray[13]
        !            56: #define STAT_HASH_CREATION     statarray[14]
        !            57: #define STAT_HASH_ENTRIES      statarray[15]
        !            58: #define STAT_HASH_EXPAND       statarray[16]
        !            59: #define STAT_HASH_LOOKUP       statarray[17]
        !            60: #define STAT_HASH_LENGTH       statarray[18]
        !            61: #define STAT_HASH_SIZE         statarray[19]
        !            62: #define STAT_HASH_POSITIVE     statarray[20]
        !            63: #define STAT_USER_SECONDS      statarray[21]
        !            64: #define STAT_USER_MS           statarray[22]
        !            65: #define STAT_SYS_SECONDS       statarray[23]
        !            66: #define STAT_SYS_MS            statarray[24]
        !            67: #define STAT_VAR_HASH_MAXSIZE  statarray[25]
        !            68: #define STAT_VAR_GHASH_MAXSIZE statarray[26]
        !            69: #define STAT_VAR_POWER         statarray[27]
        !            70:
        !            71: #define STAT_NUMBER            30
        !            72:
        !            73: #endif
        !            74: