Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: runtime/vm/timeline.h

Issue 2623113004: VM: Make indirect subclasses of StackResource have virtual destructor (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698