Changeset c884f2d for src/Common/Stats
- Timestamp:
- Mar 5, 2019, 3:08:46 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 972540e
- Parents:
- 3c0d4cd
- Location:
- src/Common/Stats
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Stats/Time.cc
r3c0d4cd rc884f2d 88 88 virtual void print(std::ostream & os) override { 89 89 if(currl > prevl) { 90 // std::cerr << "push last " << last << std::endl; 90 91 parents.push(last); 91 92 } else if(currl < prevl) { 92 93 parents.pop(); 93 } else { 94 // std::cerr << "pop, top = " << parents.top() << std::endl; 95 } 96 // else { 94 97 last = end - begin; 95 } 98 // std::cerr << "last = " << last << "\t"; 99 // } 96 100 97 101 assert(finished); -
src/Common/Stats/Time.h
r3c0d4cd rc884f2d 38 38 39 39 template<typename func_t> 40 inline void TimeBLock(const char *, func_t) {} 40 inline void TimeBlock(const char *, func_t f) { 41 f(); 42 } 41 43 # else 42 44 void StartGlobal(); … … 53 55 54 56 template<typename func_t> 55 inline void TimeB Lock(const char * name, func_t func) {57 inline void TimeBlock(const char * name, func_t func) { 56 58 BlockGuard guard(name); 57 59 func();
Note: See TracChangeset
for help on using the changeset viewer.