STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
__gnu_profile::__trace_hash_func Class Reference

Hash performance instrumentation producer. More...

#include <profile/impl/profiler_hash_func.h>

Inheritance diagram for __gnu_profile::__trace_hash_func:
__gnu_profile::__trace_base< __hashfunc_info, __hashfunc_stack_info >

Public Member Functions

 __trace_hash_func ()
 
 ~__trace_hash_func ()
 
void __insert (__object_t __obj, __stack_t __stack)
 
void __destruct (const void *__obj, std::size_t __chain, std::size_t __accesses, std::size_t __hops)
 
- Public Member Functions inherited from __gnu_profile::__trace_base< __hashfunc_info, __hashfunc_stack_info >
 __trace_base ()
 
virtual ~__trace_base ()
 
void __add_object (__object_t object, __hashfunc_info__info)
 
__hashfunc_info__get_object_info (__object_t __object)
 
void __retire_object (__object_t __object)
 
void __write (FILE *__f)
 
void __collect_warnings (__warning_vector_t &__warnings)
 

Additional Inherited Members

- Protected Attributes inherited from __gnu_profile::__trace_base< __hashfunc_info, __hashfunc_stack_info >
const char * __id
 

Detailed Description

Hash performance instrumentation producer.

Constructor & Destructor Documentation

__gnu_profile::__trace_hash_func::__trace_hash_func ( )
inline
110  : __trace_base<__hashfunc_info, __hashfunc_stack_info>()
111  { __id = "hash-distr"; }
__gnu_profile::__trace_hash_func::~__trace_hash_func ( )
inline
113 {}

Member Function Documentation

void __gnu_profile::__trace_hash_func::__destruct ( const void *  __obj,
std::size_t  __chain,
std::size_t  __accesses,
std::size_t  __hops 
)
inline
124  {
125  if (!__is_on())
126  return;
127 
128  // First find the item from the live objects and update the informations.
129  __hashfunc_info* __objs = __get_object_info(__obj);
130  if (!__objs)
131  return;
132 
133  __objs->__destruct(__chain, __accesses, __hops);
134  __retire_object(__obj);
135  }
bool __is_on()
Definition: profiler_state.h:57
void __gnu_profile::__trace_hash_func::__insert ( __object_t  __obj,
__stack_t  __stack 
)
inline
118  { __add_object(__obj, __hashfunc_info(__stack)); }
void __add_object(__object_t object, __hashfunc_info__info)

The documentation for this class was generated from the following file: