- Timestamp:
- Mar 10, 2019, 10:57:03 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, pthread-emulation, qualifiedEnum
- Children:
- 1c35c78, 53bb8f1
- Parents:
- 9e6955d (diff), fca6ca6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Stats/Time.cc
r9e6955d r91d6584 36 36 point_t global_begin; 37 37 38 size_t prevl = 0;39 size_t currl = 0;38 int prevl = 0; 39 int currl = 0; 40 40 41 41 template<typename T> … … 88 88 virtual void print(std::ostream & os) override { 89 89 if(currl > prevl) { 90 // std::cerr << "push last " << last << std::endl;91 90 parents.push(last); 92 } else if(currl < prevl) { 91 } 92 for(auto lvl = prevl - currl; lvl > 0; lvl--) { 93 93 parents.pop(); 94 // std::cerr << "pop, top = " << parents.top() << std::endl;95 94 } 96 // else { 97 last = end - begin; 98 // std::cerr << "last = " << last << "\t"; 99 // } 95 last = end - begin; 100 96 101 97 assert(finished); … … 136 132 std::stack<TimerNode *> nodes; 137 133 138 std::chrono::duration<double> TimerNode::last = {};139 std::stack<std::chrono::duration<double>> TimerNode::parents = {};134 std::chrono::duration<double> TimerNode::last; 135 std::stack<std::chrono::duration<double>> TimerNode::parents; 140 136 141 137 void StartGlobal() {
Note: See TracChangeset
for help on using the changeset viewer.