| Index: runtime/vm/timer.h
|
| diff --git a/runtime/vm/timer.h b/runtime/vm/timer.h
|
| index 6cb0a200b27724766d604ed90d4b13ac3009bf90..8f290dbec11885cac00a45d4bfe40a7705b2f3fa 100644
|
| --- a/runtime/vm/timer.h
|
| +++ b/runtime/vm/timer.h
|
| @@ -136,10 +136,21 @@ class TimerList : public ValueObject {
|
| // }
|
| class TimerScope : public StackResource {
|
| public:
|
| + TimerScope(bool flag, Timer* timer, Thread* thread = NULL)
|
| + : StackResource(thread),
|
| + nested_(false),
|
| + timer_(flag ? timer : NULL) {
|
| + Init();
|
| + }
|
| +
|
| TimerScope(bool flag, Timer* timer, Isolate* isolate = NULL)
|
| : StackResource(isolate),
|
| nested_(false),
|
| timer_(flag ? timer : NULL) {
|
| + Init();
|
| + }
|
| +
|
| + void Init() {
|
| if (timer_ != NULL) {
|
| if (!timer_->running()) {
|
| timer_->Start();
|
|
|