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
 

Constructor & Destructor Documentation

◆ IceBufferedLoggingStrategy()

IceBufferedLoggingStrategy ( ProfilerListenerPrx profilerTopic)

◆ ~IceBufferedLoggingStrategy()

Member Function Documentation

◆ copyDictionary()

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

◆ 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.

◆ logProcessCpuUsage()

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

Reimplemented from LoggingStrategy.

◆ logProcessMemoryUsage()

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

◆ logStatechartInputParameters()

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

Reimplemented from LoggingStrategy.

◆ logStatechartLocalParameters()

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

Reimplemented from LoggingStrategy.

◆ logStatechartOutputParameters()

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

Reimplemented from LoggingStrategy.

◆ logStatechartTransition()

void logStatechartTransition ( const ProfilerStatechartTransition & transition)
overridevirtual

Reimplemented from LoggingStrategy.

◆ logStatechartTransitionWithParameters()

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

Reimplemented from LoggingStrategy.

◆ publishData()

void publishData ( )
protected

◆ toProfilerTransition()

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

Member Data Documentation

◆ profilerCpuUsagesMutex

std::mutex profilerCpuUsagesMutex
protected

◆ profilerEvents

ProfilerEventList profilerEvents
protected

◆ profilerEventsMutex

std::mutex profilerEventsMutex
protected

◆ profilerListenerPrx

ProfilerListenerPrx profilerListenerPrx
protected

◆ profilerProcessCpuUsages

ProfilerProcessCpuUsageList profilerProcessCpuUsages
protected

◆ profilerProcessMemoryUsages

ProfilerProcessMemoryUsageList profilerProcessMemoryUsages
protected

◆ profilerProcessMemoryUsagesMutex

std::mutex profilerProcessMemoryUsagesMutex
protected

◆ profilerStatechartInputParameters

ProfilerStatechartParametersList profilerStatechartInputParameters
protected

◆ profilerStatechartInputParametersMutex

std::mutex profilerStatechartInputParametersMutex
protected

◆ profilerStatechartLocalParameters

ProfilerStatechartParametersList profilerStatechartLocalParameters
protected

◆ profilerStatechartLocalParametersMutex

std::mutex profilerStatechartLocalParametersMutex
protected

◆ profilerStatechartOutputParameters

ProfilerStatechartParametersList profilerStatechartOutputParameters
protected

◆ profilerStatechartOutputParametersMutex

std::mutex profilerStatechartOutputParametersMutex
protected

◆ profilerStatechartTransitions

ProfilerStatechartTransitionList profilerStatechartTransitions
protected

◆ profilerStatechartTransitionsMutex

std::mutex profilerStatechartTransitionsMutex
protected

◆ profilerStatechartTransitionsWithParameters

ProfilerStatechartTransitionWithParametersList profilerStatechartTransitionsWithParameters
protected

◆ profilerStatechartTransitionsWithParametersMutex

std::mutex profilerStatechartTransitionsWithParametersMutex
protected

◆ publisherTask

PeriodicTask<IceBufferedLoggingStrategy>::pointer_type publisherTask
protected

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