| 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 RUNTIME_VM_TIMELINE_H_ | 5 #ifndef RUNTIME_VM_TIMELINE_H_ |
| 6 #define RUNTIME_VM_TIMELINE_H_ | 6 #define RUNTIME_VM_TIMELINE_H_ |
| 7 | 7 |
| 8 #include "include/dart_tools_api.h" | 8 #include "include/dart_tools_api.h" |
| 9 | 9 |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 454 |
| 455 | 455 |
| 456 class TimelineDurationScope : public TimelineEventScope { | 456 class TimelineDurationScope : public TimelineEventScope { |
| 457 public: | 457 public: |
| 458 TimelineDurationScope(TimelineStream* stream, const char* label); | 458 TimelineDurationScope(TimelineStream* stream, const char* label); |
| 459 | 459 |
| 460 TimelineDurationScope(Thread* thread, | 460 TimelineDurationScope(Thread* thread, |
| 461 TimelineStream* stream, | 461 TimelineStream* stream, |
| 462 const char* label); | 462 const char* label); |
| 463 | 463 |
| 464 ~TimelineDurationScope(); | 464 virtual ~TimelineDurationScope(); |
| 465 | 465 |
| 466 private: | 466 private: |
| 467 int64_t timestamp_; | 467 int64_t timestamp_; |
| 468 int64_t thread_timestamp_; | 468 int64_t thread_timestamp_; |
| 469 | 469 |
| 470 DISALLOW_COPY_AND_ASSIGN(TimelineDurationScope); | 470 DISALLOW_COPY_AND_ASSIGN(TimelineDurationScope); |
| 471 }; | 471 }; |
| 472 | 472 |
| 473 | 473 |
| 474 class TimelineBeginEndScope : public TimelineEventScope { | 474 class TimelineBeginEndScope : public TimelineEventScope { |
| 475 public: | 475 public: |
| 476 TimelineBeginEndScope(TimelineStream* stream, const char* label); | 476 TimelineBeginEndScope(TimelineStream* stream, const char* label); |
| 477 | 477 |
| 478 TimelineBeginEndScope(Thread* thread, | 478 TimelineBeginEndScope(Thread* thread, |
| 479 TimelineStream* stream, | 479 TimelineStream* stream, |
| 480 const char* label); | 480 const char* label); |
| 481 | 481 |
| 482 ~TimelineBeginEndScope(); | 482 virtual ~TimelineBeginEndScope(); |
| 483 | 483 |
| 484 private: | 484 private: |
| 485 void EmitBegin(); | 485 void EmitBegin(); |
| 486 void EmitEnd(); | 486 void EmitEnd(); |
| 487 | 487 |
| 488 DISALLOW_COPY_AND_ASSIGN(TimelineBeginEndScope); | 488 DISALLOW_COPY_AND_ASSIGN(TimelineBeginEndScope); |
| 489 }; | 489 }; |
| 490 | 490 |
| 491 | 491 |
| 492 // A block of |TimelineEvent|s. Not thread safe. | 492 // A block of |TimelineEvent|s. Not thread safe. |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 | 820 |
| 821 private: | 821 private: |
| 822 TimelineEventBlock* current_; | 822 TimelineEventBlock* current_; |
| 823 TimelineEventRecorder* recorder_; | 823 TimelineEventRecorder* recorder_; |
| 824 }; | 824 }; |
| 825 | 825 |
| 826 | 826 |
| 827 } // namespace dart | 827 } // namespace dart |
| 828 | 828 |
| 829 #endif // RUNTIME_VM_TIMELINE_H_ | 829 #endif // RUNTIME_VM_TIMELINE_H_ |
| OLD | NEW |