File: MC_Test_Utilities.h

package info (click to toggle)
ace 6.0.3%2Bdfsg-0.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 49,368 kB
  • sloc: cpp: 341,826; perl: 30,850; ansic: 20,952; makefile: 10,144; sh: 4,744; python: 828; exp: 787; yacc: 511; xml: 330; lex: 158; lisp: 116; csh: 48; tcl: 5
file content (58 lines) | stat: -rw-r--r-- 1,868 bytes parent folder | download | duplicates (2)
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 */