#include <Calibration/Tools/interface/TimerStack.h>
Public Member Functions | |
void | clean_stack () |
void | pop () |
void | pop_and_push (std::string name) |
void | push (std::string name) |
~HTimerStack () | |
Private Attributes | |
std::stack< TimeMe * > | stack |
Definition at line 5 of file TimerStack.h.
HTimerStack::~HTimerStack | ( | ) | [inline] |
Definition at line 8 of file TimerStack.h.
References clean_stack().
00009 { 00010 clean_stack(); 00011 }
void HTimerStack::clean_stack | ( | ) | [inline] |
void HTimerStack::pop | ( | ) | [inline] |
Definition at line 20 of file TimerStack.h.
References stack.
Referenced by clean_stack(), and pop_and_push().
void HTimerStack::pop_and_push | ( | std::string | name | ) | [inline] |
Definition at line 31 of file TimerStack.h.
Referenced by HTrackAssociator::fillCaloTowers(), HTrackAssociator::fillEcal(), HTrackAssociator::fillHcal(), and HTrackAssociator::fillHcalTowers().
void HTimerStack::push | ( | std::string | name | ) | [inline] |
Definition at line 13 of file TimerStack.h.
References counter(), TimingReport::current(), and stack.
Referenced by HTrackAssociator::fillCaloTowers(), HTrackAssociator::fillEcal(), HTrackAssociator::fillHcal(), HTrackAssociator::fillHcalTowers(), and pop_and_push().
00013 { 00014 if( (*TimingReport::current())["firstcall_"+name].counter == 0) 00015 stack.push(new TimeMe("firstcall_"+name)); 00016 else 00017 stack.push(new TimeMe(name)); 00018 }
std::stack<TimeMe*> HTimerStack::stack [private] |