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

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

Issue 2601153002: Added methods to surface number of zone and scoped handles for each isolate. (Closed)
Patch Set: Added methods to surface number of zone and scoped handles in each isolate. These values are displa… Created 3 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/isolate.cc ('k') | runtime/vm/thread.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 RUNTIME_VM_THREAD_H_ 5 #ifndef RUNTIME_VM_THREAD_H_
6 #define RUNTIME_VM_THREAD_H_ 6 #define RUNTIME_VM_THREAD_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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 BlockForSafepoint(); 631 BlockForSafepoint();
632 } 632 }
633 } 633 }
634 634
635 Thread* next() const { return next_; } 635 Thread* next() const { return next_; }
636 636
637 // Visit all object pointers. 637 // Visit all object pointers.
638 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); 638 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames);
639 639
640 bool IsValidLocalHandle(Dart_Handle object) const; 640 bool IsValidLocalHandle(Dart_Handle object) const;
641 int CountLocalHandles() const; 641 intptr_t CountLocalHandles() const;
642 intptr_t CountZoneHandles() const;
643 intptr_t CountScopedHandles() const;
642 int ZoneSizeInBytes() const; 644 int ZoneSizeInBytes() const;
643 void UnwindScopes(uword stack_marker); 645 void UnwindScopes(uword stack_marker);
644 646
645 void InitVMConstants(); 647 void InitVMConstants();
646 648
647 #ifndef PRODUCT 649 #ifndef PRODUCT
648 void PrintJSON(JSONStream* stream) const; 650 void PrintJSON(JSONStream* stream) const;
649 #endif 651 #endif
650 652
651 private: 653 private:
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 // Disable thread interrupts. 779 // Disable thread interrupts.
778 class DisableThreadInterruptsScope : public StackResource { 780 class DisableThreadInterruptsScope : public StackResource {
779 public: 781 public:
780 explicit DisableThreadInterruptsScope(Thread* thread); 782 explicit DisableThreadInterruptsScope(Thread* thread);
781 ~DisableThreadInterruptsScope(); 783 ~DisableThreadInterruptsScope();
782 }; 784 };
783 785
784 } // namespace dart 786 } // namespace dart
785 787
786 #endif // RUNTIME_VM_THREAD_H_ 788 #endif // RUNTIME_VM_THREAD_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698