mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
Loading...
Searching...
No Matches
mrs_lib::Profiler Class Reference

Public Member Functions

 Profiler ()
 the basic constructor
 Profiler (const rclcpp::Node::SharedPtr &node, const std::string &node_name, const bool profiler_enabled)
 the full constructor
 Profiler (const Profiler &other)
 the copy constructor
Profiler & operator= (const Profiler &other)
 the assignment operator
Routine createRoutine (const std::string &name)
 create a routine for an aperiodic function

Constructor & Destructor Documentation

◆ Profiler() [1/2]

mrs_lib::Profiler::Profiler ( const rclcpp::Node::SharedPtr & node,
const std::string & node_name,
const bool profiler_enabled )

the full constructor

Parameters
nodenode handle
node_namethe node name
profiler_enabledif profiling is enabled

◆ Profiler() [2/2]

mrs_lib::Profiler::Profiler ( const Profiler & other)

the copy constructor

Parameters
otherthe other object

Member Function Documentation

◆ createRoutine()

Routine mrs_lib::Profiler::createRoutine ( const std::string & name)

create a routine for an aperiodic function

Parameters
namethe function name
Returns
the Routine

◆ operator=()

Profiler & mrs_lib::Profiler::operator= ( const Profiler & other)

the assignment operator

Parameters
otherthe other object
Returns
this object

The documentation for this class was generated from the following files:
  • /home/runner/work/mrs_lib/mrs_lib/include/mrs_lib/profiler.h
  • /home/runner/work/mrs_lib/mrs_lib/src/profiler/profiler.cpp