1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
// -*- C++ -*-
//=============================================================================
/**
* @file MC_Test_Utilities.h
*
* $Id: MC_Test_Utilities.h 90163 2010-05-18 21:42:20Z mitza $
*
* @author Jeff Parsons <j.parsons@vanderbilt.edu>
*/
//=============================================================================
#ifndef MC_TEST_UTILITIES_H
#define MC_TEST_UTILITIES_H
#include /**/ "ace/pre.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Monitor_Control_Types.h"
#include "MC_Test_Utilities_export.h"
#if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
using namespace ACE_VERSIONED_NAMESPACE_NAME::ACE::Monitor_Control;
#endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
/**
* @struct MC_Test_Utilities
*
* @brief Container for utility methods that display the output
* of the various OS monitors in a friendly format.
*
*/
struct MC_TEST_UTILITIES_Export MC_Test_Utilities
{
#if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
static void display_timestamp (const Monitor_Control_Types::Data &data);
static void display_num_threads (const Monitor_Control_Types::Data &data);
static void display_mq_size (const Monitor_Control_Types::Data &data);
static void display_memory_usage (const Monitor_Control_Types::Data &data);
static void display_cpu_load (const Monitor_Control_Types::Data &data);
static void display_bytes_sent (const Monitor_Control_Types::Data &data);
static void display_bytes_received (const Monitor_Control_Types::Data &data);
static void display_packets_sent (const Monitor_Control_Types::Data &data);
static void display_packets_received (const Monitor_Control_Types::Data &data);
#endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
};
#include /**/ "ace/post.h"
#endif /* MC_TEST_UTILITIES_H */
|