00001 #include "FastShowerUtils/Pinger/SimpleStatsCollector.h" 00002 #include "FastShowerUtils/IDebug.h" 00003 #include "FastShowerUtils/FunctionStats.h" 00004 00005 namespace FastShower{ 00006 IPinger* SimpleStatsCollector::clone() const { 00007 IPinger* p = new SimpleStatsCollector(*this); 00008 return p; 00009 } 00011 void SimpleStatsCollector::action(const IDebug* d){ 00012 00013 cout<<indent()<<d->name()<<" Statistics"<< endl; 00014 d->statistics()->header(cout); 00015 d->statistics()->report(cout); 00016 cout<<indent()<<d->statistics()<< endl; 00017 } 00018 } 00019 00020 00021