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

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, 7 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
« no previous file with comments | « runtime/vm/dart_api_impl.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 "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 // Returns the number of sampled threads.
491 intptr_t ProfileInterrupt();
491 492
492 VMTagCounters* vm_tag_counters() { 493 VMTagCounters* vm_tag_counters() {
493 return &vm_tag_counters_; 494 return &vm_tag_counters_;
494 } 495 }
495 496
496 uword user_tag() const { 497 uword user_tag() const {
497 return user_tag_; 498 return user_tag_;
498 } 499 }
499 static intptr_t user_tag_offset() { 500 static intptr_t user_tag_offset() {
500 return OFFSET_OF(Isolate, user_tag_); 501 return OFFSET_OF(Isolate, user_tag_);
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 char* script_url_; 737 char* script_url_;
737 char* library_url_; 738 char* library_url_;
738 char* class_name_; 739 char* class_name_;
739 char* function_name_; 740 char* function_name_;
740 char* exception_callback_name_; 741 char* exception_callback_name_;
741 }; 742 };
742 743
743 } // namespace dart 744 } // namespace dart
744 745
745 #endif // VM_ISOLATE_H_ 746 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698