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

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

Issue 2583663002: Internally measure isolate uptime with monotonic time. (Closed)
Patch Set: Created 4 years 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/heap.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 RUNTIME_VM_ISOLATE_H_ 5 #ifndef RUNTIME_VM_ISOLATE_H_
6 #define RUNTIME_VM_ISOLATE_H_ 6 #define RUNTIME_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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void set_message_notify_callback(Dart_MessageNotifyCallback value) { 197 void set_message_notify_callback(Dart_MessageNotifyCallback value) {
198 message_notify_callback_ = value; 198 message_notify_callback_ = value;
199 } 199 }
200 200
201 Thread* mutator_thread() const; 201 Thread* mutator_thread() const;
202 202
203 const char* name() const { return name_; } 203 const char* name() const { return name_; }
204 const char* debugger_name() const { return debugger_name_; } 204 const char* debugger_name() const { return debugger_name_; }
205 void set_debugger_name(const char* name); 205 void set_debugger_name(const char* name);
206 206
207 int64_t start_time() const { return start_time_; } 207 int64_t UptimeMicros() const;
208 208
209 Dart_Port main_port() const { return main_port_; } 209 Dart_Port main_port() const { return main_port_; }
210 void set_main_port(Dart_Port port) { 210 void set_main_port(Dart_Port port) {
211 ASSERT(main_port_ == 0); // Only set main port once. 211 ASSERT(main_port_ == 0); // Only set main port once.
212 main_port_ = port; 212 main_port_ = port;
213 } 213 }
214 Dart_Port origin_id() const { return origin_id_; } 214 Dart_Port origin_id() const { return origin_id_; }
215 void set_origin_id(Dart_Port id) { 215 void set_origin_id(Dart_Port id) {
216 ASSERT((id == main_port_ && origin_id_ == 0) || (origin_id_ == main_port_)); 216 ASSERT((id == main_port_ && origin_id_ == 0) || (origin_id_ == main_port_));
217 origin_id_ = id; 217 origin_id_ = id;
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 RawCode* ic_miss_code_; 710 RawCode* ic_miss_code_;
711 ObjectStore* object_store_; 711 ObjectStore* object_store_;
712 ClassTable class_table_; 712 ClassTable class_table_;
713 bool single_step_; 713 bool single_step_;
714 714
715 ThreadRegistry* thread_registry_; 715 ThreadRegistry* thread_registry_;
716 SafepointHandler* safepoint_handler_; 716 SafepointHandler* safepoint_handler_;
717 Dart_MessageNotifyCallback message_notify_callback_; 717 Dart_MessageNotifyCallback message_notify_callback_;
718 char* name_; 718 char* name_;
719 char* debugger_name_; 719 char* debugger_name_;
720 int64_t start_time_; 720 int64_t start_time_micros_;
721 Dart_Port main_port_; 721 Dart_Port main_port_;
722 Dart_Port origin_id_; // Isolates created by spawnFunc have some origin id. 722 Dart_Port origin_id_; // Isolates created by spawnFunc have some origin id.
723 uint64_t pause_capability_; 723 uint64_t pause_capability_;
724 uint64_t terminate_capability_; 724 uint64_t terminate_capability_;
725 bool errors_fatal_; 725 bool errors_fatal_;
726 void* init_callback_data_; 726 void* init_callback_data_;
727 Dart_EnvironmentCallback environment_callback_; 727 Dart_EnvironmentCallback environment_callback_;
728 Dart_LibraryTagHandler library_tag_handler_; 728 Dart_LibraryTagHandler library_tag_handler_;
729 ApiState* api_state_; 729 ApiState* api_state_;
730 Debugger* debugger_; 730 Debugger* debugger_;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 intptr_t* spawn_count_; 993 intptr_t* spawn_count_;
994 994
995 Dart_IsolateFlags isolate_flags_; 995 Dart_IsolateFlags isolate_flags_;
996 bool paused_; 996 bool paused_;
997 bool errors_are_fatal_; 997 bool errors_are_fatal_;
998 }; 998 };
999 999
1000 } // namespace dart 1000 } // namespace dart
1001 1001
1002 #endif // RUNTIME_VM_ISOLATE_H_ 1002 #endif // RUNTIME_VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698