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

Side by Side Diff: runtime/vm/timeline.h

Issue 1291803009: Enable concurrent optimization test after migrating scopes to Thread* (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update ASSERT in LongJumpScope. 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/symbols.cc ('k') | runtime/vm/timer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_TIMELINE_H_ 5 #ifndef VM_TIMELINE_H_
6 #define VM_TIMELINE_H_ 6 #define VM_TIMELINE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/bitfield.h" 9 #include "vm/bitfield.h"
10 10
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 // (name, enabled by default). 222 // (name, enabled by default).
223 #define ISOLATE_TIMELINE_STREAM_LIST(V) \ 223 #define ISOLATE_TIMELINE_STREAM_LIST(V) \
224 V(API, false) \ 224 V(API, false) \
225 V(Compiler, false) \ 225 V(Compiler, false) \
226 V(Embedder, false) \ 226 V(Embedder, false) \
227 V(GC, false) \ 227 V(GC, false) \
228 V(Isolate, false) \ 228 V(Isolate, false) \
229 229
230 230
231 #define TIMELINE_FUNCTION_COMPILATION_DURATION(isolate, suffix, function) \ 231 #define TIMELINE_FUNCTION_COMPILATION_DURATION(thread, suffix, function) \
232 TimelineDurationScope tds(isolate, \ 232 TimelineDurationScope tds(thread, \
233 isolate->GetCompilerStream(), \ 233 thread->isolate()->GetCompilerStream(), \
234 "Compile" suffix); \ 234 "Compile" suffix); \
235 if (tds.enabled()) { \ 235 if (tds.enabled()) { \
236 tds.SetNumArguments(1); \ 236 tds.SetNumArguments(1); \
237 tds.CopyArgument( \ 237 tds.CopyArgument( \
238 0, \ 238 0, \
239 "function", \ 239 "function", \
240 const_cast<char*>(function.ToLibNamePrefixedQualifiedCString())); \ 240 const_cast<char*>(function.ToLibNamePrefixedQualifiedCString())); \
241 } 241 }
242 242
243 243
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 TimelineEventBlock* Next(); 591 TimelineEventBlock* Next();
592 592
593 private: 593 private:
594 TimelineEventBlock* current_; 594 TimelineEventBlock* current_;
595 TimelineEventRecorder* recorder_; 595 TimelineEventRecorder* recorder_;
596 }; 596 };
597 597
598 } // namespace dart 598 } // namespace dart
599 599
600 #endif // VM_TIMELINE_H_ 600 #endif // VM_TIMELINE_H_
OLDNEW
« no previous file with comments | « runtime/vm/symbols.cc ('k') | runtime/vm/timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698