counters.h revision d981a844e64c196b4c96be1a52ddc42e23337138
2N/A/** $Id$ */
2N/A/** @file
2N/A * Counters definitions and declarations
2N/A */
2N/A
2N/A/*
2N/A * Copyright (C) 2007 Sun Microsystems, Inc.
2N/A *
2N/A * This file is part of VirtualBox Open Source Edition (OSE), as
2N/A * available from http://www.virtualbox.org. This file is free software;
2N/A * you can redistribute it and/or modify it under the terms of the GNU
2N/A * General Public License (GPL) as published by the Free Software
2N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
2N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
2N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
2N/A *
2N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
2N/A * Clara, CA 95054 USA or visit http://www.sun.com if you need
2N/A * additional information or have any questions.
2N/A */
2N/A#ifndef PROFILE_COUNTER
2N/A# error PROFILE_COUNTER not defied
2N/A#endif
2N/A#ifndef COUNTING_COUTER
2N/A#error COUNTING_COUTER
2N/A#endif
2N/A
2N/APROFILE_COUNTER(Fill, "Profiling slirp fills");
2N/APROFILE_COUNTER(Poll, "Profiling slirp polls");
2N/APROFILE_COUNTER(FastTimer, "Profiling slirp fast timer");
2N/APROFILE_COUNTER(SlowTimer, "Profiling slirp slow timer");
2N/APROFILE_COUNTER(IOwrite, "Profiling IO sowrite");
2N/APROFILE_COUNTER(IOread, "Profiling IO soread");
2N/A
2N/ACOUNTING_COUTER(TCP, "TCP sockets");
COUNTING_COUTER(TCPHot, "TCP sockets active");
COUNTING_COUTER(UDP, "UDP sockets");
COUNTING_COUTER(UDPHot, "UDP sockets active");
COUNTING_COUTER(SBAlloc, "SB Alloc");
COUNTING_COUTER(SBReAlloc, "SB ReAlloc");
COUNTING_COUTER(IORead_in_1, "SB IORead_in_1");
COUNTING_COUTER(IORead_in_2, "SB IORead_in_2");
COUNTING_COUTER(IOWrite_in_1, "SB IOWrite_in_1");
COUNTING_COUTER(IOWrite_in_2, "SB IOWrite_in_2");