33#include <IceUtil/Time.h>
35#include <ArmarXCore/interface/statechart/StatechartIce.h>
121 const std::string& parentName,
122 const std::string& functionName);
124 const StateIceBasePtr& sourceState,
125 const StateIceBasePtr& destinationState,
126 const std::string& eventName);
128 const armarx::StateParameterMap& inputParameterMap);
130 const armarx::StateParameterMap& localParameterMap);
132 const armarx::StateParameterMap& outputParameterMap);
159 std::mutex loggerMutex;
164 const std::string timestampUnit{
"us"};
The armarx::Profiler::Profiler class can be used for timing executions within the ArmarX framework.
void logStatechartInputParameters(const std::string &stateIdentifier, const armarx::StateParameterMap &inputParameterMap)
void logStatechartTransitionWithParameters(const TransitionIceBase &transition)
void logStatechartTransition(const std::string &parentStateIdentifier, const StateIceBasePtr &sourceState, const StateIceBasePtr &destinationState, const std::string &eventName)
static std::string GetEventName(Profiler::EventType eventType)
getEventName maps enum values from armarx::Profiler::Profiler::EventType to strings
EventType
The EventType enum provides symbolic names for the different events which can be logged via armarx::P...
void logProcessCpuUsage(float cpuUsage)
std::map< Profiler::EventType, std::string > EventTypeMap
void setName(const std::string &profilerName)
void logProcessMemoryUsage(int memoryUsage)
void logEvent(Profiler::EventType eventType, const std::string &parentName, const std::string &functionName)
void logStatechartOutputParameters(const std::string &stateIdentifier, const armarx::StateParameterMap &outputParameterMap)
void setLoggingStrategy(LoggingStrategyPtr loggingStrategy)
void reset()
reset reinitializes armarx::Profiler::Profiler::startTime with the current time.
void logStatechartLocalParameters(const std::string &stateIdentifier, const armarx::StateParameterMap &localParameterMap)
std::shared_ptr< LoggingStrategy > LoggingStrategyPtr
std::shared_ptr< Profiler > ProfilerPtr
std::set< ProfilerPtr > ProfilerSet