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

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

Issue 297183003: Reduce CPU usage when no isolates need to be profiled. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 "platform/thread.h" 10 #include "platform/thread.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 void set_thread_state(InterruptableThreadState* state) { 481 void set_thread_state(InterruptableThreadState* state) {
482 ASSERT((thread_state_ == NULL) || (state == NULL)); 482 ASSERT((thread_state_ == NULL) || (state == NULL));
483 thread_state_ = state; 483 thread_state_ = state;
484 } 484 }
485 485
486 InterruptableThreadState* thread_state() const { 486 InterruptableThreadState* thread_state() const {
487 return thread_state_; 487 return thread_state_;
488 } 488 }
489 489
490 void ProfileInterrupt(); 490 intptr_t ProfileInterrupt();
491 491
492 VMTagCounters* vm_tag_counters() { 492 VMTagCounters* vm_tag_counters() {
493 return &vm_tag_counters_; 493 return &vm_tag_counters_;
494 } 494 }
495 495
496 uword user_tag() const { 496 uword user_tag() const {
497 return user_tag_; 497 return user_tag_;
498 } 498 }
499 static intptr_t user_tag_offset() { 499 static intptr_t user_tag_offset() {
500 return OFFSET_OF(Isolate, user_tag_); 500 return OFFSET_OF(Isolate, user_tag_);
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 char* script_url_; 736 char* script_url_;
737 char* library_url_; 737 char* library_url_;
738 char* class_name_; 738 char* class_name_;
739 char* function_name_; 739 char* function_name_;
740 char* exception_callback_name_; 740 char* exception_callback_name_;
741 }; 741 };
742 742
743 } // namespace dart 743 } // namespace dart
744 744
745 #endif // VM_ISOLATE_H_ 745 #endif // VM_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698