| 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 #include "vm/os.h" | 10 #include "vm/os.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 return &stream_##name##_enabled_; \ | 62 return &stream_##name##_enabled_; \ |
| 63 } \ | 63 } \ |
| 64 static void SetStream##name##Enabled(bool enabled) { \ | 64 static void SetStream##name##Enabled(bool enabled) { \ |
| 65 stream_##name##_enabled_ = enabled; \ | 65 stream_##name##_enabled_ = enabled; \ |
| 66 } | 66 } |
| 67 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_FLAGS) | 67 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_FLAGS) |
| 68 #undef ISOLATE_TIMELINE_STREAM_FLAGS | 68 #undef ISOLATE_TIMELINE_STREAM_FLAGS |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 static TimelineEventRecorder* recorder_; | 71 static TimelineEventRecorder* recorder_; |
| 72 static TimelineStream* vm_stream_; | 72 static TimelineStream vm_stream_; |
| 73 static TimelineStream* vm_api_stream_; | 73 static TimelineStream vm_api_stream_; |
| 74 | 74 |
| 75 #define ISOLATE_TIMELINE_STREAM_DECLARE_FLAG(name, not_used) \ | 75 #define ISOLATE_TIMELINE_STREAM_DECLARE_FLAG(name, not_used) \ |
| 76 static bool stream_##name##_enabled_; | 76 static bool stream_##name##_enabled_; |
| 77 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_DECLARE_FLAG) | 77 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_DECLARE_FLAG) |
| 78 #undef ISOLATE_TIMELINE_STREAM_DECLARE_FLAG | 78 #undef ISOLATE_TIMELINE_STREAM_DECLARE_FLAG |
| 79 | 79 |
| 80 friend class TimelineRecorderOverride; | 80 friend class TimelineRecorderOverride; |
| 81 friend class ReclaimBlocksIsolateVisitor; | 81 friend class ReclaimBlocksIsolateVisitor; |
| 82 }; | 82 }; |
| 83 | 83 |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 | 743 |
| 744 private: | 744 private: |
| 745 TimelineEventBlock* current_; | 745 TimelineEventBlock* current_; |
| 746 TimelineEventRecorder* recorder_; | 746 TimelineEventRecorder* recorder_; |
| 747 }; | 747 }; |
| 748 | 748 |
| 749 | 749 |
| 750 } // namespace dart | 750 } // namespace dart |
| 751 | 751 |
| 752 #endif // VM_TIMELINE_H_ | 752 #endif // VM_TIMELINE_H_ |
| OLD | NEW |