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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 intptr_t length_; | 389 intptr_t length_; |
390 intptr_t block_index_; | 390 intptr_t block_index_; |
391 | 391 |
392 // Only accessed under the recorder's lock. | 392 // Only accessed under the recorder's lock. |
393 Isolate* isolate_; | 393 Isolate* isolate_; |
394 bool open_; | 394 bool open_; |
395 | 395 |
396 void Open(Isolate* isolate); | 396 void Open(Isolate* isolate); |
397 void Finish(); | 397 void Finish(); |
398 | 398 |
| 399 friend class Thread; |
399 friend class ThreadRegistry; | 400 friend class ThreadRegistry; |
400 friend class TimelineEventRecorder; | 401 friend class TimelineEventRecorder; |
401 friend class TimelineEventRingRecorder; | 402 friend class TimelineEventRingRecorder; |
402 friend class TimelineEventEndlessRecorder; | 403 friend class TimelineEventEndlessRecorder; |
403 friend class TimelineTestHelper; | 404 friend class TimelineTestHelper; |
404 | 405 |
405 private: | 406 private: |
406 DISALLOW_COPY_AND_ASSIGN(TimelineEventBlock); | 407 DISALLOW_COPY_AND_ASSIGN(TimelineEventBlock); |
407 }; | 408 }; |
408 | 409 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 TimelineEventBlock* Next(); | 592 TimelineEventBlock* Next(); |
592 | 593 |
593 private: | 594 private: |
594 TimelineEventBlock* current_; | 595 TimelineEventBlock* current_; |
595 TimelineEventRecorder* recorder_; | 596 TimelineEventRecorder* recorder_; |
596 }; | 597 }; |
597 | 598 |
598 } // namespace dart | 599 } // namespace dart |
599 | 600 |
600 #endif // VM_TIMELINE_H_ | 601 #endif // VM_TIMELINE_H_ |
OLD | NEW |