| Index: runtime/vm/timeline.h
|
| diff --git a/runtime/vm/timeline.h b/runtime/vm/timeline.h
|
| index 4989fdbeb66ed6a0708c7f7d2c5ac23e89a0a464..b81e7a8bb340e827b798302b804689301ed5b72b 100644
|
| --- a/runtime/vm/timeline.h
|
| +++ b/runtime/vm/timeline.h
|
| @@ -198,6 +198,17 @@ class TimelineDurationScope : public StackResource {
|
| TimelineStream* stream,
|
| const char* label)
|
| : StackResource(isolate) {
|
| + Init(stream, label);
|
| + }
|
| +
|
| + TimelineDurationScope(Thread* thread,
|
| + TimelineStream* stream,
|
| + const char* label)
|
| + : StackResource(thread) {
|
| + Init(stream, label);
|
| + }
|
| +
|
| + void Init(TimelineStream* stream, const char* label) {
|
| event_ = stream->StartEvent();
|
| if (event_ == NULL) {
|
| return;
|
|
|