refs #27 --HG-- branch : keith rename : lint/fl => dist/lint/fl rename : lint/lint.current => dist/lint/lint.current rename : inc_posix/bitstring.h => include/bitstring.h rename : inc_posix/btree.h => include/btree.h rename : inc_posix/cache.h => include/cache.h rename : inc_posix/debug.h => include/debug.h rename : inc_posix/extern.h => include/extern.h rename : inc_posix/fh.h => include/fh.h rename : inc_posix/mem.h => include/mem.h rename : inc_posix/misc.h => include/misc.h rename : inc_posix/mutex.h => include/mutex.h rename : inc_posix/queue.h => include/queue.h rename : inc_posix/serial.h => include/serial.h rename : inc_posix/stat.h => include/stat.h rename : inc_posix/util.h => include/util.h rename : inc_posix/walk.h => include/walk.h rename : inc_posix/wiredtiger.in => include/wiredtiger.in rename : inc_posix/wt_internal.in => include/wt_internal.in rename : btree/bt_alloc.c => src/btree/bt_alloc.c rename : btree/bt_bulk.c => src/btree/bt_bulk.c rename : btree/bt_cache.c => src/btree/bt_cache.c rename : btree/bt_close.c => src/btree/bt_close.c rename : btree/bt_cmp.c => src/btree/bt_cmp.c rename : btree/bt_debug.c => src/btree/bt_debug.c rename : btree/bt_desc.c => src/btree/bt_desc.c rename : btree/bt_discard.c => src/btree/bt_discard.c rename : btree/bt_dump.c => src/btree/bt_dump.c rename : btree/bt_evict.c => src/btree/bt_evict.c rename : btree/bt_misc.c => src/btree/bt_misc.c rename : btree/bt_open.c => src/btree/bt_open.c rename : btree/bt_ovfl.c => src/btree/bt_ovfl.c rename : btree/bt_page.c => src/btree/bt_page.c rename : btree/bt_read.c => src/btree/bt_read.c rename : btree/bt_reconcile.c => src/btree/bt_reconcile.c rename : btree/bt_ret.c => src/btree/bt_ret.c rename : btree/bt_rw.c => src/btree/bt_rw.c rename : btree/bt_stat.c => src/btree/bt_stat.c rename : btree/bt_sync.c => src/btree/bt_sync.c rename : btree/bt_vrfy.c => src/btree/bt_vrfy.c rename : btree/bt_walk.c => src/btree/bt_walk.c rename : btree/c_drain.c => src/btree/c_drain.c rename : btree/c_init.c => src/btree/c_init.c rename : btree/c_page.c => src/btree/c_page.c rename : btree/c_read.c => src/btree/c_read.c rename : btree/col_get.c => src/btree/col_get.c rename : btree/col_put.c => src/btree/col_put.c rename : btree/col_srch.c => src/btree/col_srch.c rename : btree/row_get.c => src/btree/row_get.c rename : btree/row_put.c => src/btree/row_put.c rename : btree/row_srch.c => src/btree/row_srch.c rename : db/db_err.c => src/db/db_err.c rename : db/db_getset.c => src/db/db_getset.c rename : db/db_handle.c => src/db/db_handle.c rename : db/db_huffman.c => src/db/db_huffman.c rename : db/db_open.c => src/db/db_open.c rename : db/db_stat.c => src/db/db_stat.c rename : db/db_sync.c => src/db/db_sync.c rename : env/env_err.c => src/env/env_err.c rename : env/env_getset.c => src/env/env_getset.c rename : env/env_global.c => src/env/env_global.c rename : env/env_handle.c => src/env/env_handle.c rename : env/env_init.c => src/env/env_init.c rename : env/env_msg.c => src/env/env_msg.c rename : env/env_open.c => src/env/env_open.c rename : env/env_stat.c => src/env/env_stat.c rename : env/env_sync.c => src/env/env_sync.c rename : env/env_toc.c => src/env/env_toc.c rename : env/env_workq.c => src/env/env_workq.c rename : os_posix/os_abort.c => src/os_posix/os_abort.c rename : os_posix/os_alloc.c => src/os_posix/os_alloc.c rename : os_posix/os_filesize.c => src/os_posix/os_filesize.c rename : os_posix/os_fsync.c => src/os_posix/os_fsync.c rename : os_posix/os_mtx.c => src/os_posix/os_mtx.c rename : os_posix/os_open.c => src/os_posix/os_open.c rename : os_posix/os_rw.c => src/os_posix/os_rw.c rename : os_posix/os_sleep.c => src/os_posix/os_sleep.c rename : os_posix/os_thread.c => src/os_posix/os_thread.c rename : os_posix/os_yield.c => src/os_posix/os_yield.c rename : support/api.c => src/support/api.c rename : support/cksum.c => src/support/cksum.c rename : support/err.c => src/support/err.c rename : support/hazard.c => src/support/hazard.c rename : support/huffman.c => src/support/huffman.c rename : support/pow.c => src/support/pow.c rename : support/prime.c => src/support/prime.c rename : support/progress.c => src/support/progress.c rename : support/scratch.c => src/support/scratch.c rename : support/serial.c => src/support/serial.c rename : support/simple_setup.c => src/support/simple_setup.c rename : support/stat.c => src/support/stat.c rename : support/strerror.c => src/support/strerror.c rename : support/version.c => src/support/version.c rename : utilities/db_dump/util_dump.c => src/utilities/db_dump/util_dump.c rename : utilities/db_load/util_load.c => src/utilities/db_load/util_load.c rename : utilities/db_stat/util_stat.c => src/utilities/db_stat/util_stat.c rename : utilities/db_verify/util_verify.c => src/utilities/db_verify/util_verify.c
195 lines
6.0 KiB
C
195 lines
6.0 KiB
C
/*-
|
|
* See the file LICENSE for redistribution information.
|
|
*
|
|
* Copyright (c) 2008-2011 WiredTiger, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct __wt_stats {
|
|
uint64_t v; /* 64-bit value */
|
|
const char *desc; /* text description */
|
|
};
|
|
|
|
#define WT_STAT(stats, def) \
|
|
(stats)[WT_STAT_ ## def].v
|
|
#define WT_STAT_DECR(stats, def) do { \
|
|
--(stats)[WT_STAT_ ## def].v; \
|
|
} while (0)
|
|
#define WT_STAT_INCR(stats, def) do { \
|
|
++(stats)[WT_STAT_ ## def].v; \
|
|
} while (0)
|
|
#define WT_STAT_DECRV(stats, def, value) do { \
|
|
(stats)[WT_STAT_ ## def].v -= (value); \
|
|
} while (0)
|
|
#define WT_STAT_INCRV(stats, def, value) do { \
|
|
(stats)[WT_STAT_ ## def].v += (value); \
|
|
} while (0)
|
|
#define WT_STAT_SET(stats, def, value) do { \
|
|
(stats)[WT_STAT_ ## def].v = (value); \
|
|
} while (0)
|
|
|
|
/*
|
|
* DO NOT EDIT: automatically built by dist/stat.py.
|
|
*/
|
|
/* Statistics section: BEGIN */
|
|
|
|
/*
|
|
* Statistics entries for CACHE handle.
|
|
*/
|
|
#define WT_STAT_CACHE_BYTES_INUSE 0
|
|
#define WT_STAT_CACHE_BYTES_MAX 1
|
|
#define WT_STAT_CACHE_EVICT_HAZARD 2
|
|
#define WT_STAT_CACHE_EVICT_MODIFIED 3
|
|
#define WT_STAT_CACHE_EVICT_UNMODIFIED 4
|
|
#define WT_STAT_CACHE_PAGES_INUSE 5
|
|
#define WT_STAT_OVERFLOW_READ 6
|
|
#define WT_STAT_PAGE_READ 7
|
|
#define WT_STAT_PAGE_WRITE 8
|
|
|
|
/*
|
|
* Statistics entries for DB/IDB database.
|
|
*/
|
|
#define WT_STAT_BASE_RECNO 0
|
|
#define WT_STAT_DUP_TREE 1
|
|
#define WT_STAT_FIXED_LEN 2
|
|
#define WT_STAT_INTLMAX 3
|
|
#define WT_STAT_INTLMIN 4
|
|
#define WT_STAT_ITEM_COL_DELETED 5
|
|
#define WT_STAT_ITEM_DATA_OVFL 6
|
|
#define WT_STAT_ITEM_DUP_DATA 7
|
|
#define WT_STAT_ITEM_KEY_OVFL 8
|
|
#define WT_STAT_ITEM_TOTAL_DATA 9
|
|
#define WT_STAT_ITEM_TOTAL_KEY 10
|
|
#define WT_STAT_LEAFMAX 11
|
|
#define WT_STAT_LEAFMIN 12
|
|
#define WT_STAT_MAGIC 13
|
|
#define WT_STAT_MAJOR 14
|
|
#define WT_STAT_MINOR 15
|
|
#define WT_STAT_PAGE_COL_FIX 16
|
|
#define WT_STAT_PAGE_COL_INTERNAL 17
|
|
#define WT_STAT_PAGE_COL_RLE 18
|
|
#define WT_STAT_PAGE_COL_VARIABLE 19
|
|
#define WT_STAT_PAGE_DUP_INTERNAL 20
|
|
#define WT_STAT_PAGE_DUP_LEAF 21
|
|
#define WT_STAT_PAGE_OVERFLOW 22
|
|
#define WT_STAT_PAGE_ROW_INTERNAL 23
|
|
#define WT_STAT_PAGE_ROW_LEAF 24
|
|
#define WT_STAT_TREE_LEVEL 25
|
|
|
|
/*
|
|
* Statistics entries for DB/IDB handle.
|
|
*/
|
|
#define WT_STAT_DB_ALLOC 0
|
|
#define WT_STAT_DB_ALLOC_FILE 1
|
|
#define WT_STAT_DB_FREE 2
|
|
#define WT_STAT_DUPLICATE_ITEMS_INSERTED 3
|
|
#define WT_STAT_HUFFMAN_DATA 4
|
|
#define WT_STAT_HUFFMAN_KEY 5
|
|
#define WT_STAT_ITEMS_INSERTED 6
|
|
#define WT_STAT_OVERFLOW_DATA 7
|
|
#define WT_STAT_OVERFLOW_KEY 8
|
|
#define WT_STAT_REPEAT_COUNT 9
|
|
|
|
/*
|
|
* Statistics entries for ENV/IENV handle.
|
|
*/
|
|
#define WT_STAT_DATABASE_OPEN 0
|
|
#define WT_STAT_MEMALLOC 1
|
|
#define WT_STAT_MEMFREE 2
|
|
#define WT_STAT_MTX_LOCK 3
|
|
#define WT_STAT_TOTAL_READ_IO 4
|
|
#define WT_STAT_TOTAL_WRITE_IO 5
|
|
#define WT_STAT_WORKQ_PASSES 6
|
|
#define WT_STAT_WORKQ_YIELD 7
|
|
|
|
/*
|
|
* Statistics entries for FH handle.
|
|
*/
|
|
#define WT_STAT_FSYNC 0
|
|
#define WT_STAT_READ_IO 1
|
|
#define WT_STAT_WRITE_IO 2
|
|
|
|
/*
|
|
* Statistics entries for Methods.
|
|
*/
|
|
#define WT_STAT_DB_BTREE_COMPARE_DUP_GET 0
|
|
#define WT_STAT_DB_BTREE_COMPARE_DUP_SET 1
|
|
#define WT_STAT_DB_BTREE_COMPARE_GET 2
|
|
#define WT_STAT_DB_BTREE_COMPARE_INT_GET 3
|
|
#define WT_STAT_DB_BTREE_COMPARE_INT_SET 4
|
|
#define WT_STAT_DB_BTREE_COMPARE_SET 5
|
|
#define WT_STAT_DB_BTREE_DUP_OFFPAGE_GET 6
|
|
#define WT_STAT_DB_BTREE_DUP_OFFPAGE_SET 7
|
|
#define WT_STAT_DB_BTREE_ITEMSIZE_GET 8
|
|
#define WT_STAT_DB_BTREE_ITEMSIZE_SET 9
|
|
#define WT_STAT_DB_BTREE_PAGESIZE_GET 10
|
|
#define WT_STAT_DB_BTREE_PAGESIZE_SET 11
|
|
#define WT_STAT_DB_BULK_LOAD 12
|
|
#define WT_STAT_DB_CLOSE 13
|
|
#define WT_STAT_DB_COLUMN_SET 14
|
|
#define WT_STAT_DB_COL_DEL 15
|
|
#define WT_STAT_DB_COL_DEL_RESTART 16
|
|
#define WT_STAT_DB_COL_GET 17
|
|
#define WT_STAT_DB_COL_PUT 18
|
|
#define WT_STAT_DB_COL_PUT_RESTART 19
|
|
#define WT_STAT_DB_DUMP 20
|
|
#define WT_STAT_DB_ERRCALL_GET 21
|
|
#define WT_STAT_DB_ERRCALL_SET 22
|
|
#define WT_STAT_DB_ERRFILE_GET 23
|
|
#define WT_STAT_DB_ERRFILE_SET 24
|
|
#define WT_STAT_DB_ERRPFX_GET 25
|
|
#define WT_STAT_DB_ERRPFX_SET 26
|
|
#define WT_STAT_DB_HUFFMAN_SET 27
|
|
#define WT_STAT_DB_OPEN 28
|
|
#define WT_STAT_DB_ROW_DEL 29
|
|
#define WT_STAT_DB_ROW_DEL_RESTART 30
|
|
#define WT_STAT_DB_ROW_GET 31
|
|
#define WT_STAT_DB_ROW_PUT 32
|
|
#define WT_STAT_DB_ROW_PUT_RESTART 33
|
|
#define WT_STAT_DB_STAT_CLEAR 34
|
|
#define WT_STAT_DB_STAT_PRINT 35
|
|
#define WT_STAT_DB_SYNC 36
|
|
#define WT_STAT_DB_VERIFY 37
|
|
#define WT_STAT_ENV_CACHE_SIZE_GET 38
|
|
#define WT_STAT_ENV_CACHE_SIZE_SET 39
|
|
#define WT_STAT_ENV_CLOSE 40
|
|
#define WT_STAT_ENV_DATA_UPDATE_INITIAL_GET 41
|
|
#define WT_STAT_ENV_DATA_UPDATE_INITIAL_SET 42
|
|
#define WT_STAT_ENV_DATA_UPDATE_MAX_GET 43
|
|
#define WT_STAT_ENV_DATA_UPDATE_MAX_SET 44
|
|
#define WT_STAT_ENV_DB 45
|
|
#define WT_STAT_ENV_ERRCALL_GET 46
|
|
#define WT_STAT_ENV_ERRCALL_SET 47
|
|
#define WT_STAT_ENV_ERRFILE_GET 48
|
|
#define WT_STAT_ENV_ERRFILE_SET 49
|
|
#define WT_STAT_ENV_ERRPFX_GET 50
|
|
#define WT_STAT_ENV_ERRPFX_SET 51
|
|
#define WT_STAT_ENV_HAZARD_SIZE_GET 52
|
|
#define WT_STAT_ENV_HAZARD_SIZE_SET 53
|
|
#define WT_STAT_ENV_MSGCALL_GET 54
|
|
#define WT_STAT_ENV_MSGCALL_SET 55
|
|
#define WT_STAT_ENV_MSGFILE_GET 56
|
|
#define WT_STAT_ENV_MSGFILE_SET 57
|
|
#define WT_STAT_ENV_OPEN 58
|
|
#define WT_STAT_ENV_STAT_CLEAR 59
|
|
#define WT_STAT_ENV_STAT_PRINT 60
|
|
#define WT_STAT_ENV_SYNC 61
|
|
#define WT_STAT_ENV_TOC 62
|
|
#define WT_STAT_ENV_TOC_SIZE_GET 63
|
|
#define WT_STAT_ENV_TOC_SIZE_SET 64
|
|
#define WT_STAT_ENV_VERBOSE_GET 65
|
|
#define WT_STAT_ENV_VERBOSE_SET 66
|
|
#define WT_STAT_WT_TOC_CLOSE 67
|
|
|
|
/* Statistics section: END */
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|