Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
ProfilerCheckControl.hGo to the documentation of this file.00001 //-*-c++-*- 00002 #ifndef INCLUDED_ProfilerCheckControl_h_ 00003 #define INCLUDED_ProfilerCheckControl_h_ 00004 00005 #include "ControlBase.h" 00006 #include "Shared/WorldState.h" 00007 00008 //! causes the WorldState::mainProfile and WorldState::motionProfile to display reports to #sout 00009 class ProfilerCheckControl : public ControlBase { 00010 public: 00011 //! Constructor 00012 ProfilerCheckControl() : ControlBase("Profiler Check","Reports time spent in all of the profiled sections in all processes") {} 00013 00014 //! Destructor 00015 ~ProfilerCheckControl() {} 00016 00017 //! Prints a report to sout 00018 virtual ControlBase * activate(MotionManager::MC_ID, Socket *) { 00019 sout->printf("~~~ Main: ~~~\n%s",state->mainProfile.report().c_str()); 00020 sout->printf("~~~ Motion: ~~~\n%s",state->motionProfile.report().c_str()); 00021 return NULL; 00022 } 00023 }; 00024 00025 /*! @file 00026 * @brief Defines ProfilerCheckControl, which causes the WorldState::mainProfile and WorldState::motionProfile to display reports to #sout 00027 * @author ejt (Creator) 00028 * 00029 * $Author: ejt $ 00030 * $Name: tekkotsu-2_2 $ 00031 * $Revision: 1.5 $ 00032 * $State: Rel $ 00033 * $Date: 2003/07/25 20:18:04 $ 00034 */ 00035 00036 #endif |
Tekkotsu v2.2 |
Generated Tue Oct 19 14:19:15 2004 by Doxygen 1.3.9.1 |