Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison include/llvm/Support/Timer.h @ 83:60c9769439b8
LLVM 3.7
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Feb 2015 14:55:36 +0900 |
parents | 54457678186b |
children | afa8332a0e37 |
comparison
equal
deleted
inserted
replaced
78:af83660cff7b | 83:60c9769439b8 |
---|---|
124 /// starts the timer specified as its argument. When it is destroyed, it stops | 124 /// starts the timer specified as its argument. When it is destroyed, it stops |
125 /// the relevant timer. This makes it easy to time a region of code. | 125 /// the relevant timer. This makes it easy to time a region of code. |
126 /// | 126 /// |
127 class TimeRegion { | 127 class TimeRegion { |
128 Timer *T; | 128 Timer *T; |
129 TimeRegion(const TimeRegion &) LLVM_DELETED_FUNCTION; | 129 TimeRegion(const TimeRegion &) = delete; |
130 public: | 130 public: |
131 explicit TimeRegion(Timer &t) : T(&t) { | 131 explicit TimeRegion(Timer &t) : T(&t) { |
132 T->startTimer(); | 132 T->startTimer(); |
133 } | 133 } |
134 explicit TimeRegion(Timer *t) : T(t) { | 134 explicit TimeRegion(Timer *t) : T(t) { |
162 std::string Name; | 162 std::string Name; |
163 Timer *FirstTimer; // First timer in the group. | 163 Timer *FirstTimer; // First timer in the group. |
164 std::vector<std::pair<TimeRecord, std::string> > TimersToPrint; | 164 std::vector<std::pair<TimeRecord, std::string> > TimersToPrint; |
165 | 165 |
166 TimerGroup **Prev, *Next; // Doubly linked list of TimerGroup's. | 166 TimerGroup **Prev, *Next; // Doubly linked list of TimerGroup's. |
167 TimerGroup(const TimerGroup &TG) LLVM_DELETED_FUNCTION; | 167 TimerGroup(const TimerGroup &TG) = delete; |
168 void operator=(const TimerGroup &TG) LLVM_DELETED_FUNCTION; | 168 void operator=(const TimerGroup &TG) = delete; |
169 public: | 169 public: |
170 explicit TimerGroup(StringRef name); | 170 explicit TimerGroup(StringRef name); |
171 ~TimerGroup(); | 171 ~TimerGroup(); |
172 | 172 |
173 void setName(StringRef name) { Name.assign(name.begin(), name.end()); } | 173 void setName(StringRef name) { Name.assign(name.begin(), name.end()); } |