IceLoggingStrategy Class Reference

IceLoggingStrategy publishes incoming log method calls directly on IceLoggingStrategy::profilerListenerPrx. More...

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

+ Inheritance diagram for IceLoggingStrategy:

Public Member Functions

 IceLoggingStrategy (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
 
 ~IceLoggingStrategy () 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 ()
 

Protected Attributes

ProfilerListenerPrx profilerListenerPrx
 
- Protected Attributes inherited from LoggingStrategy
std::string id
 

Detailed Description

IceLoggingStrategy publishes incoming log method calls directly on IceLoggingStrategy::profilerListenerPrx.

Instances of this strategy object is used by armarx::Profiler.

Definition at line 53 of file IceLoggingStrategy.h.

Constructor & Destructor Documentation

◆ IceLoggingStrategy()

IceLoggingStrategy ( ProfilerListenerPrx  profilerTopic)

Definition at line 39 of file IceLoggingStrategy.cpp.

◆ ~IceLoggingStrategy()

~IceLoggingStrategy ( )
override

Definition at line 44 of file IceLoggingStrategy.cpp.

Member Function Documentation

◆ 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 48 of file IceLoggingStrategy.cpp.

◆ logProcessCpuUsage()

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

Reimplemented from LoggingStrategy.

Definition at line 85 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 91 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 59 of file IceLoggingStrategy.cpp.

◆ logStatechartLocalParameters()

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

Reimplemented from LoggingStrategy.

Definition at line 65 of file IceLoggingStrategy.cpp.

◆ logStatechartOutputParameters()

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

Reimplemented from LoggingStrategy.

Definition at line 71 of file IceLoggingStrategy.cpp.

◆ logStatechartTransition()

void logStatechartTransition ( const ProfilerStatechartTransition &  transition)
overridevirtual

Reimplemented from LoggingStrategy.

Definition at line 54 of file IceLoggingStrategy.cpp.

◆ logStatechartTransitionWithParameters()

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

Reimplemented from LoggingStrategy.

Definition at line 77 of file IceLoggingStrategy.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ profilerListenerPrx

ProfilerListenerPrx profilerListenerPrx
protected

Definition at line 73 of file IceLoggingStrategy.h.


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