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