| 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/bitfield.h" | 8 #include "vm/bitfield.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 char* value; | 89 char* value; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 int64_t timestamp0_; | 92 int64_t timestamp0_; |
| 93 int64_t timestamp1_; | 93 int64_t timestamp1_; |
| 94 TimelineEventArgument* arguments_; | 94 TimelineEventArgument* arguments_; |
| 95 intptr_t arguments_length_; | 95 intptr_t arguments_length_; |
| 96 uword state_; | 96 uword state_; |
| 97 const char* label_; | 97 const char* label_; |
| 98 TimelineStream* stream_; | 98 TimelineStream* stream_; |
| 99 Thread* thread_; | 99 ThreadId thread_; |
| 100 | 100 |
| 101 void FreeArguments(); | 101 void FreeArguments(); |
| 102 | 102 |
| 103 void StreamInit(TimelineStream* stream); | 103 void StreamInit(TimelineStream* stream); |
| 104 void Init(EventType event_type, const char* label); | 104 void Init(EventType event_type, const char* label); |
| 105 | 105 |
| 106 void set_event_type(EventType event_type) { | 106 void set_event_type(EventType event_type) { |
| 107 state_ = EventTypeField::update(event_type, state_); | 107 state_ = EventTypeField::update(event_type, state_); |
| 108 } | 108 } |
| 109 | 109 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 TimelineEventBlock* GetNewBlockLocked(); | 415 TimelineEventBlock* GetNewBlockLocked(); |
| 416 void PrintJSONEvents(JSONArray* array) const; | 416 void PrintJSONEvents(JSONArray* array) const; |
| 417 | 417 |
| 418 Mutex lock_; | 418 Mutex lock_; |
| 419 TimelineEventBlock* head_; | 419 TimelineEventBlock* head_; |
| 420 }; | 420 }; |
| 421 | 421 |
| 422 } // namespace dart | 422 } // namespace dart |
| 423 | 423 |
| 424 #endif // VM_TIMELINE_H_ | 424 #endif // VM_TIMELINE_H_ |
| OLD | NEW |