Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(882)

Unified Diff: runtime/vm/timeline.h

Issue 1285603004: Add Thread-based constructors to TimerScope, TimelineDurationScope. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Minor fixes. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/timer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698