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 //! Prints a report to sout 00015 virtual ControlBase * activate(MotionManager::MC_ID, Socket *) { 00016 sout->printf("~~~ Main: ~~~\n%s",state->mainProfile.report().c_str()); 00017 sout->printf("~~~ Motion: ~~~\n%s",state->motionProfile.report().c_str()); 00018 return NULL; 00019 } 00020 }; 00021 00022 /*! @file 00023 * @brief Defines ProfilerCheckControl, which causes the WorldState::mainProfile and WorldState::motionProfile to display reports to #sout 00024 * @author ejt (Creator) 00025 * 00026 * $Author: ejt $ 00027 * $Name: tekkotsu-2_2_2 $ 00028 * $Revision: 1.6 $ 00029 * $State: Exp $ 00030 * $Date: 2004/11/11 20:34:59 $ 00031 */ 00032 00033 #endif |
Tekkotsu v2.2.2 |
Generated Tue Jan 4 15:43:15 2005 by Doxygen 1.4.0 |