| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 void PrintJSON(JSONStream* js); | 386 void PrintJSON(JSONStream* js); |
| 387 TimelineEventBlock* GetNewBlock(); | 387 TimelineEventBlock* GetNewBlock(); |
| 388 TimelineEventBlock* GetHeadBlock(); | 388 TimelineEventBlock* GetHeadBlock(); |
| 389 | 389 |
| 390 protected: | 390 protected: |
| 391 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 391 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 392 TimelineEvent* StartEvent(const Object& object); | 392 TimelineEvent* StartEvent(const Object& object); |
| 393 TimelineEvent* StartEvent(); | 393 TimelineEvent* StartEvent(); |
| 394 void CompleteEvent(TimelineEvent* event); | 394 void CompleteEvent(TimelineEvent* event); |
| 395 | 395 |
| 396 intptr_t FindOldestBlockIndex() const; |
| 396 TimelineEventBlock* GetNewBlockLocked(); | 397 TimelineEventBlock* GetNewBlockLocked(); |
| 397 | 398 |
| 398 void PrintJSONEvents(JSONArray* array) const; | 399 void PrintJSONEvents(JSONArray* array) const; |
| 399 | 400 |
| 400 TimelineEventBlock** blocks_; | 401 TimelineEventBlock** blocks_; |
| 401 RawArray* event_objects_; | 402 RawArray* event_objects_; |
| 402 intptr_t capacity_; | 403 intptr_t capacity_; |
| 403 intptr_t num_blocks_; | 404 intptr_t num_blocks_; |
| 404 intptr_t block_cursor_; | 405 intptr_t block_cursor_; |
| 405 }; | 406 }; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 } | 483 } |
| 483 | 484 |
| 484 private: | 485 private: |
| 485 TimelineEventBlock* current_; | 486 TimelineEventBlock* current_; |
| 486 TimelineEventRecorder* recorder_; | 487 TimelineEventRecorder* recorder_; |
| 487 }; | 488 }; |
| 488 | 489 |
| 489 } // namespace dart | 490 } // namespace dart |
| 490 | 491 |
| 491 #endif // VM_TIMELINE_H_ | 492 #endif // VM_TIMELINE_H_ |
| OLD | NEW |