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

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

Issue 1584003002: Re-enable Dart_Api Timeline tracing (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/timeline.cc » ('j') | 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 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return &stream_##name##_enabled_; \ 62 return &stream_##name##_enabled_; \
63 } \ 63 } \
64 static void SetStream##name##Enabled(bool enabled) { \ 64 static void SetStream##name##Enabled(bool enabled) { \
65 stream_##name##_enabled_ = enabled; \ 65 stream_##name##_enabled_ = enabled; \
66 } 66 }
67 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_FLAGS) 67 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_FLAGS)
68 #undef ISOLATE_TIMELINE_STREAM_FLAGS 68 #undef ISOLATE_TIMELINE_STREAM_FLAGS
69 69
70 private: 70 private:
71 static TimelineEventRecorder* recorder_; 71 static TimelineEventRecorder* recorder_;
72 static TimelineStream* vm_stream_; 72 static TimelineStream vm_stream_;
73 static TimelineStream* vm_api_stream_; 73 static TimelineStream vm_api_stream_;
74 74
75 #define ISOLATE_TIMELINE_STREAM_DECLARE_FLAG(name, not_used) \ 75 #define ISOLATE_TIMELINE_STREAM_DECLARE_FLAG(name, not_used) \
76 static bool stream_##name##_enabled_; 76 static bool stream_##name##_enabled_;
77 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_DECLARE_FLAG) 77 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_DECLARE_FLAG)
78 #undef ISOLATE_TIMELINE_STREAM_DECLARE_FLAG 78 #undef ISOLATE_TIMELINE_STREAM_DECLARE_FLAG
79 79
80 friend class TimelineRecorderOverride; 80 friend class TimelineRecorderOverride;
81 friend class ReclaimBlocksIsolateVisitor; 81 friend class ReclaimBlocksIsolateVisitor;
82 }; 82 };
83 83
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 743
744 private: 744 private:
745 TimelineEventBlock* current_; 745 TimelineEventBlock* current_;
746 TimelineEventRecorder* recorder_; 746 TimelineEventRecorder* recorder_;
747 }; 747 };
748 748
749 749
750 } // namespace dart 750 } // namespace dart
751 751
752 #endif // VM_TIMELINE_H_ 752 #endif // VM_TIMELINE_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/timeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698