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

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

Issue 1362503002: Add global timeline stream overrides (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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_test.cc ('k') | runtime/vm/isolate.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 } 659 }
660 static intptr_t default_tag_offset() { 660 static intptr_t default_tag_offset() {
661 return OFFSET_OF(Isolate, default_tag_); 661 return OFFSET_OF(Isolate, default_tag_);
662 } 662 }
663 663
664 #define ISOLATE_METRIC_ACCESSOR(type, variable, name, unit) \ 664 #define ISOLATE_METRIC_ACCESSOR(type, variable, name, unit) \
665 type* Get##variable##Metric() { return &metric_##variable##_; } 665 type* Get##variable##Metric() { return &metric_##variable##_; }
666 ISOLATE_METRIC_LIST(ISOLATE_METRIC_ACCESSOR); 666 ISOLATE_METRIC_LIST(ISOLATE_METRIC_ACCESSOR);
667 #undef ISOLATE_METRIC_ACCESSOR 667 #undef ISOLATE_METRIC_ACCESSOR
668 668
669 #define ISOLATE_TIMELINE_STREAM_ACCESSOR(name, enabled_by_default) \ 669 #define ISOLATE_TIMELINE_STREAM_ACCESSOR(name, not_used) \
670 TimelineStream* Get##name##Stream() { return &stream_##name##_; } 670 TimelineStream* Get##name##Stream() { return &stream_##name##_; }
671 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_ACCESSOR) 671 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_ACCESSOR)
672 #undef ISOLATE_TIMELINE_STREAM_ACCESSOR 672 #undef ISOLATE_TIMELINE_STREAM_ACCESSOR
673 673
674 static intptr_t IsolateListLength(); 674 static intptr_t IsolateListLength();
675 675
676 RawGrowableObjectArray* tag_table() const { return tag_table_; } 676 RawGrowableObjectArray* tag_table() const { return tag_table_; }
677 void set_tag_table(const GrowableObjectArray& value); 677 void set_tag_table(const GrowableObjectArray& value);
678 678
679 RawUserTag* current_tag() const { return current_tag_; } 679 RawUserTag* current_tag() const { return current_tag_; }
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 bool reusable_##object##_handle_scope_active_; 938 bool reusable_##object##_handle_scope_active_;
939 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_VARIABLE); 939 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_VARIABLE);
940 #undef REUSABLE_HANDLE_SCOPE_VARIABLE 940 #undef REUSABLE_HANDLE_SCOPE_VARIABLE
941 #endif // defined(DEBUG) 941 #endif // defined(DEBUG)
942 942
943 #define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \ 943 #define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \
944 type metric_##variable##_; 944 type metric_##variable##_;
945 ISOLATE_METRIC_LIST(ISOLATE_METRIC_VARIABLE); 945 ISOLATE_METRIC_LIST(ISOLATE_METRIC_VARIABLE);
946 #undef ISOLATE_METRIC_VARIABLE 946 #undef ISOLATE_METRIC_VARIABLE
947 947
948 #define ISOLATE_TIMELINE_STREAM_VARIABLE(name, enabled_by_default) \ 948 #define ISOLATE_TIMELINE_STREAM_VARIABLE(name, not_used) \
949 TimelineStream stream_##name##_; 949 TimelineStream stream_##name##_;
950 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_VARIABLE) 950 ISOLATE_TIMELINE_STREAM_LIST(ISOLATE_TIMELINE_STREAM_VARIABLE)
951 #undef ISOLATE_TIMELINE_STREAM_VARIABLE 951 #undef ISOLATE_TIMELINE_STREAM_VARIABLE
952 952
953 VMHandles reusable_handles_; 953 VMHandles reusable_handles_;
954 954
955 static Dart_IsolateCreateCallback create_callback_; 955 static Dart_IsolateCreateCallback create_callback_;
956 static Dart_IsolateInterruptCallback interrupt_callback_; 956 static Dart_IsolateInterruptCallback interrupt_callback_;
957 static Dart_IsolateUnhandledExceptionCallback unhandled_exception_callback_; 957 static Dart_IsolateUnhandledExceptionCallback unhandled_exception_callback_;
958 static Dart_IsolateShutdownCallback shutdown_callback_; 958 static Dart_IsolateShutdownCallback shutdown_callback_;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 uint8_t* serialized_message_; 1127 uint8_t* serialized_message_;
1128 intptr_t serialized_message_len_; 1128 intptr_t serialized_message_len_;
1129 Isolate::Flags isolate_flags_; 1129 Isolate::Flags isolate_flags_;
1130 bool paused_; 1130 bool paused_;
1131 bool errors_are_fatal_; 1131 bool errors_are_fatal_;
1132 }; 1132 };
1133 1133
1134 } // namespace dart 1134 } // namespace dart
1135 1135
1136 #endif // VM_ISOLATE_H_ 1136 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698