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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 intptr_t block_index_; | 523 intptr_t block_index_; |
524 | 524 |
525 // Only accessed under the recorder's lock. | 525 // Only accessed under the recorder's lock. |
526 ThreadId thread_id_; | 526 ThreadId thread_id_; |
527 bool in_use_; | 527 bool in_use_; |
528 | 528 |
529 void Open(); | 529 void Open(); |
530 void Finish(); | 530 void Finish(); |
531 | 531 |
532 friend class Thread; | 532 friend class Thread; |
533 friend class ThreadRegistry; | |
534 friend class TimelineEventRecorder; | 533 friend class TimelineEventRecorder; |
535 friend class TimelineEventRingRecorder; | 534 friend class TimelineEventRingRecorder; |
536 friend class TimelineEventEndlessRecorder; | 535 friend class TimelineEventEndlessRecorder; |
537 friend class TimelineTestHelper; | 536 friend class TimelineTestHelper; |
538 | 537 |
539 private: | 538 private: |
540 DISALLOW_COPY_AND_ASSIGN(TimelineEventBlock); | 539 DISALLOW_COPY_AND_ASSIGN(TimelineEventBlock); |
541 }; | 540 }; |
542 | 541 |
543 | 542 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 | 742 |
744 private: | 743 private: |
745 TimelineEventBlock* current_; | 744 TimelineEventBlock* current_; |
746 TimelineEventRecorder* recorder_; | 745 TimelineEventRecorder* recorder_; |
747 }; | 746 }; |
748 | 747 |
749 | 748 |
750 } // namespace dart | 749 } // namespace dart |
751 | 750 |
752 #endif // VM_TIMELINE_H_ | 751 #endif // VM_TIMELINE_H_ |
OLD | NEW |