ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR > Class Template Reference

This class implements a timeprobe for use in a Metrics framework. More...

#include <Metrics_Cache_T.h>

Inheritance diagram for ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >:
Inheritance graph
[legend]
Collaboration diagram for ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  event_id { WORK_START = 0, WORK_STOP = 1, WORK_SUSPEND = 2, WORK_RESUME = 3 }
typedef ACE_Metrics_Timeprobe
< ACE_LOCK, ALLOCATOR > 
ACE_METRICS_TIMEPROBE_TYPE
typedef ACE_timeprobe_t ACE_METRICS_TIMEPROBE_DATA_TYPE
typedef
ACE_METRICS_TIMEPROBE_TYPE
ACE_METRICS_TIMEPROBE_BASED_PTR_TYPE
typedef char * ACE_METRICS_NAME_BASED_PTR_TYPE

Public Member Functions

 ACE_Metrics_Timeprobe (u_int id=0, const char *name=0, u_long size=METRICS_DEFAULT_TIMEPROBE_TABLE_SIZE)
 ACE_Metrics_Timeprobe (ALLOCATOR *allocatorPtr, u_int id=0, const char *name=0, u_long size=METRICS_DEFAULT_TIMEPROBE_TABLE_SIZE)
virtual ~ACE_Metrics_Timeprobe ()
int is_event (const ACE_METRICS_TIMEPROBE_DATA_TYPE &t, ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::event_id id)
const char * probe_name (void)
void probe_name (char *name)
u_int probe_id (void)
void probe_id (u_int id)
void flush_ACE_Metrics_Timeprobe ()

Protected Attributes

u_int id_
char * name_

Private Member Functions

 ACE_Metrics_Timeprobe (const ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR > &)
void operator= (const ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR > &)

Detailed Description

template<class ACE_LOCK, class ALLOCATOR>
class ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >

This class implements a timeprobe for use in a Metrics framework.

This class provides a probe for specific thread and method call metrics timing points.


Member Typedef Documentation

template<class ACE_LOCK , class ALLOCATOR >
typedef char* ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::ACE_METRICS_NAME_BASED_PTR_TYPE
template<class ACE_LOCK , class ALLOCATOR >
typedef ACE_METRICS_TIMEPROBE_TYPE* ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::ACE_METRICS_TIMEPROBE_BASED_PTR_TYPE
template<class ACE_LOCK , class ALLOCATOR >
typedef ACE_timeprobe_t ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::ACE_METRICS_TIMEPROBE_DATA_TYPE
template<class ACE_LOCK , class ALLOCATOR >
typedef ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR> ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::ACE_METRICS_TIMEPROBE_TYPE

Member Enumeration Documentation

template<class ACE_LOCK , class ALLOCATOR >
enum ACE_Metrics_Timeprobe::event_id
Enumerator:
WORK_START 
WORK_STOP 
WORK_SUSPEND 
WORK_RESUME 

Constructor & Destructor Documentation

template<class ACE_LOCK , class ALLOCATOR >
ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::ACE_Metrics_Timeprobe ( u_int  id = 0,
const char *  name = 0,
u_long  size = METRICS_DEFAULT_TIMEPROBE_TABLE_SIZE 
) [inline]
template<class ACE_LOCK , class ALLOCATOR >
ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::ACE_Metrics_Timeprobe ( ALLOCATOR *  allocatorPtr,
u_int  id = 0,
const char *  name = 0,
u_long  size = METRICS_DEFAULT_TIMEPROBE_TABLE_SIZE 
) [inline]
template<class ACE_LOCK , class ALLOCATOR >
ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::~ACE_Metrics_Timeprobe (  )  [inline, virtual]
template<class ACE_LOCK , class ALLOCATOR >
ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::ACE_Metrics_Timeprobe ( const ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR > &   )  [private]

Member Function Documentation

template<class ACE_LOCK , class ALLOCATOR >
void ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::flush_ACE_Metrics_Timeprobe (  )  [inline]
template<class ACE_LOCK , class ALLOCATOR >
int ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::is_event ( const ACE_METRICS_TIMEPROBE_DATA_TYPE t,
ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::event_id  id 
)
template<class ACE_LOCK , class ALLOCATOR >
void ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::operator= ( const ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR > &   )  [private]
template<class ACE_LOCK , class ALLOCATOR >
void ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::probe_id ( u_int  id  )  [inline]
template<class ACE_LOCK , class ALLOCATOR >
u_int ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::probe_id ( void   )  [inline]
template<class ACE_LOCK , class ALLOCATOR >
void ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::probe_name ( char *  name  )  [inline]
template<class ACE_LOCK , class ALLOCATOR >
const char * ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::probe_name ( void   )  [inline]

Member Data Documentation

template<class ACE_LOCK , class ALLOCATOR >
u_int ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::id_ [protected]
template<class ACE_LOCK , class ALLOCATOR >
char* ACE_Metrics_Timeprobe< ACE_LOCK, ALLOCATOR >::name_ [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2