IceBufferedLoggingStrategy Class Reference

#include <ArmarXCore/core/services/profiler/IceLoggingStrategy.h>

+ Inheritance diagram for IceBufferedLoggingStrategy:

Public Member Functions

 IceBufferedLoggingStrategy (ProfilerListenerPrx profilerTopic)
 
void logEvent (pid_t processId, uint64_t timestamp, const std::string &executableName, const std::string &timestampUnit, const std::string &eventName, const std::string &parentName, const std::string &functionName) override
 
void logProcessCpuUsage (pid_t processId, uint64_t timestamp, float cpuUsage) override
 
void logProcessMemoryUsage (pid_t processId, u_int64_t timestamp, int memoryUsage) override
 
void logStatechartInputParameters (pid_t processId, uint64_t timestamp, const std::string &stateIdentifier, const armarx::StateParameterMap &inputParameterMap) override
 
void logStatechartLocalParameters (pid_t processId, uint64_t timestamp, const std::string &stateIdentifier, const armarx::StateParameterMap &localParameterMap) override
 
void logStatechartOutputParameters (pid_t processId, uint64_t timestamp, const std::string &stateIdentifier, const armarx::StateParameterMap &outputParameterMap) override
 
void logStatechartTransition (const ProfilerStatechartTransition &transition) override
 
void logStatechartTransitionWithParameters (pid_t processId, uint64_t timestamp, const TransitionIceBase &transition) override
 
 ~IceBufferedLoggingStrategy () override
 
- Public Member Functions inherited from LoggingStrategy
 LoggingStrategy ()
 
virtual void logProcessMemoryUsage (pid_t processId, uint64_t timestamp, int memoryUsage)
 
void setId (const std::string &id)
 
virtual ~LoggingStrategy ()
 

Static Public Member Functions

static ProfilerStatechartTransitionWithParameters toProfilerTransition (pid_t processId, uint64_t timestamp, const TransitionIceBase &transition)
 

Protected Member Functions

void publishData ()
 

Static Protected Member Functions

static armarx::StateParameterMap copyDictionary (const armarx::StateParameterMap &source)
 

Protected Attributes

std::mutex profilerCpuUsagesMutex
 
ProfilerEventList profilerEvents
 
std::mutex profilerEventsMutex
 
ProfilerListenerPrx profilerListenerPrx
 
ProfilerProcessCpuUsageList profilerProcessCpuUsages
 
ProfilerProcessMemoryUsageList profilerProcessMemoryUsages
 
std::mutex profilerProcessMemoryUsagesMutex
 
ProfilerStatechartParametersList profilerStatechartInputParameters
 
std::mutex profilerStatechartInputParametersMutex
 
ProfilerStatechartParametersList profilerStatechartLocalParameters
 
std::mutex profilerStatechartLocalParametersMutex
 
ProfilerStatechartParametersList profilerStatechartOutputParameters
 
std::mutex profilerStatechartOutputParametersMutex
 
ProfilerStatechartTransitionList profilerStatechartTransitions
 
std::mutex profilerStatechartTransitionsMutex
 
ProfilerStatechartTransitionWithParametersList profilerStatechartTransitionsWithParameters
 
std::mutex profilerStatechartTransitionsWithParametersMutex
 
PeriodicTask< IceBufferedLoggingStrategy >::pointer_type publisherTask
 
- Protected Attributes inherited from LoggingStrategy
std::string id
 

Detailed Description

Definition at line 84 of file IceLoggingStrategy.h.

Constructor & Destructor Documentation

◆ IceBufferedLoggingStrategy()

IceBufferedLoggingStrategy ( ProfilerListenerPrx  profilerTopic)

Definition at line 101 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:

◆ ~IceBufferedLoggingStrategy()

Definition at line 117 of file IceLoggingStrategy.cpp.

Member Function Documentation

◆ copyDictionary()

armarx::StateParameterMap copyDictionary ( const armarx::StateParameterMap &  source)
staticprotected

Definition at line 122 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:

◆ logEvent()

void logEvent ( pid_t  processId,
uint64_t  timestamp,
const std::string &  executableName,
const std::string &  timestampUnit,
const std::string &  eventName,
const std::string &  parentName,
const std::string &  functionName 
)
overridevirtual

Reimplemented from LoggingStrategy.

Definition at line 165 of file IceLoggingStrategy.cpp.

◆ logProcessCpuUsage()

void logProcessCpuUsage ( pid_t  processId,
uint64_t  timestamp,
float  cpuUsage 
)
overridevirtual

Reimplemented from LoggingStrategy.

Definition at line 223 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:

◆ logProcessMemoryUsage()

void logProcessMemoryUsage ( pid_t  processId,
u_int64_t  timestamp,
int  memoryUsage 
)
override

Definition at line 232 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:

◆ logStatechartInputParameters()

void logStatechartInputParameters ( pid_t  processId,
uint64_t  timestamp,
const std::string &  stateIdentifier,
const armarx::StateParameterMap &  inputParameterMap 
)
overridevirtual

Reimplemented from LoggingStrategy.

Definition at line 180 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:

◆ logStatechartLocalParameters()

void logStatechartLocalParameters ( pid_t  processId,
uint64_t  timestamp,
const std::string &  stateIdentifier,
const armarx::StateParameterMap &  localParameterMap 
)
overridevirtual

Reimplemented from LoggingStrategy.

Definition at line 191 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:

◆ logStatechartOutputParameters()

void logStatechartOutputParameters ( pid_t  processId,
uint64_t  timestamp,
const std::string &  stateIdentifier,
const armarx::StateParameterMap &  outputParameterMap 
)
overridevirtual

Reimplemented from LoggingStrategy.

Definition at line 201 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:

◆ logStatechartTransition()

void logStatechartTransition ( const ProfilerStatechartTransition &  transition)
overridevirtual

Reimplemented from LoggingStrategy.

Definition at line 174 of file IceLoggingStrategy.cpp.

◆ logStatechartTransitionWithParameters()

void logStatechartTransitionWithParameters ( pid_t  processId,
uint64_t  timestamp,
const TransitionIceBase &  transition 
)
overridevirtual

Reimplemented from LoggingStrategy.

Definition at line 211 of file IceLoggingStrategy.cpp.

◆ publishData()

void publishData ( )
protected

Definition at line 241 of file IceLoggingStrategy.cpp.

+ Here is the caller graph for this function:

◆ toProfilerTransition()

armarx::ProfilerStatechartTransitionWithParameters toProfilerTransition ( pid_t  processId,
uint64_t  timestamp,
const TransitionIceBase &  transition 
)
static

Definition at line 134 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ profilerCpuUsagesMutex

std::mutex profilerCpuUsagesMutex
protected

Definition at line 129 of file IceLoggingStrategy.h.

◆ profilerEvents

ProfilerEventList profilerEvents
protected

Definition at line 112 of file IceLoggingStrategy.h.

◆ profilerEventsMutex

std::mutex profilerEventsMutex
protected

Definition at line 111 of file IceLoggingStrategy.h.

◆ profilerListenerPrx

ProfilerListenerPrx profilerListenerPrx
protected

Definition at line 135 of file IceLoggingStrategy.h.

◆ profilerProcessCpuUsages

ProfilerProcessCpuUsageList profilerProcessCpuUsages
protected

Definition at line 130 of file IceLoggingStrategy.h.

◆ profilerProcessMemoryUsages

ProfilerProcessMemoryUsageList profilerProcessMemoryUsages
protected

Definition at line 133 of file IceLoggingStrategy.h.

◆ profilerProcessMemoryUsagesMutex

std::mutex profilerProcessMemoryUsagesMutex
protected

Definition at line 132 of file IceLoggingStrategy.h.

◆ profilerStatechartInputParameters

ProfilerStatechartParametersList profilerStatechartInputParameters
protected

Definition at line 118 of file IceLoggingStrategy.h.

◆ profilerStatechartInputParametersMutex

std::mutex profilerStatechartInputParametersMutex
protected

Definition at line 117 of file IceLoggingStrategy.h.

◆ profilerStatechartLocalParameters

ProfilerStatechartParametersList profilerStatechartLocalParameters
protected

Definition at line 121 of file IceLoggingStrategy.h.

◆ profilerStatechartLocalParametersMutex

std::mutex profilerStatechartLocalParametersMutex
protected

Definition at line 120 of file IceLoggingStrategy.h.

◆ profilerStatechartOutputParameters

ProfilerStatechartParametersList profilerStatechartOutputParameters
protected

Definition at line 124 of file IceLoggingStrategy.h.

◆ profilerStatechartOutputParametersMutex

std::mutex profilerStatechartOutputParametersMutex
protected

Definition at line 123 of file IceLoggingStrategy.h.

◆ profilerStatechartTransitions

ProfilerStatechartTransitionList profilerStatechartTransitions
protected

Definition at line 115 of file IceLoggingStrategy.h.

◆ profilerStatechartTransitionsMutex

std::mutex profilerStatechartTransitionsMutex
protected

Definition at line 114 of file IceLoggingStrategy.h.

◆ profilerStatechartTransitionsWithParameters

ProfilerStatechartTransitionWithParametersList profilerStatechartTransitionsWithParameters
protected

Definition at line 127 of file IceLoggingStrategy.h.

◆ profilerStatechartTransitionsWithParametersMutex

std::mutex profilerStatechartTransitionsWithParametersMutex
protected

Definition at line 126 of file IceLoggingStrategy.h.

◆ publisherTask

PeriodicTask<IceBufferedLoggingStrategy>::pointer_type publisherTask
protected

Definition at line 137 of file IceLoggingStrategy.h.


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