Go to the documentation of this file.
39 #define MOVEIT_ENABLE_PROFILING 1
41 #ifndef MOVEIT_ENABLE_PROFILING
47 #define MOVEIT_ENABLE_PROFILING 0
49 #define MOVEIT_ENABLE_PROFILING 1
54 #if MOVEIT_ENABLE_PROFILING
59 #include <boost/thread.hpp>
60 #include <boost/noncopyable.hpp>
61 #include <boost/date_time/posix_time/posix_time.hpp>
165 static void Event(
const std::string& name,
const unsigned int times = 1)
171 void event(
const std::string& name,
const unsigned int times = 1);
174 static void Average(
const std::string& name,
const double value)
180 void average(
const std::string& name,
const double value);
183 static void Begin(
const std::string& name)
189 static void End(
const std::string& name)
195 void begin(
const std::string& name);
198 void end(
const std::string& name);
203 static void Status(std::ostream& out = std::cout,
bool merge =
true)
211 void status(std::ostream& out = std::cout,
bool merge =
true);
246 boost::posix_time::time_duration
total;
263 start = boost::posix_time::microsec_clock::universal_time();
269 const boost::posix_time::time_duration& dt = boost::posix_time::microsec_clock::universal_time() -
start;
296 std::map<std::string, unsigned long int>
events;
299 std::map<std::string, AvgInfo>
avg;
302 std::map<std::string, TimeInfo>
time;
308 std::map<boost::thread::id, PerThread>
data_;
364 static void Start(
void)
368 static void Stop(
void)
372 static void Clear(
void)
388 static void Event(
const std::string&,
const unsigned int = 1)
392 void event(
const std::string&,
const unsigned int = 1)
396 static void Average(
const std::string&,
const double)
400 void average(
const std::string&,
const double)
404 static void Begin(
const std::string&)
408 static void End(
const std::string&)
412 void begin(
const std::string&)
416 void end(
const std::string&)
420 static void Status(std::ostream& = std::cout,
bool =
true)
424 void status(std::ostream& = std::cout,
bool =
true)
Main namespace for MoveIt.
moveit_core
Author(s): Ioan Sucan
, Sachin Chitta , Acorn Pooley
autogenerated on Sat Oct 12 2024 02:25:11