| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |