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

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

Issue 2554983002: Created methods to surface zone memory information for each isolate and thread in JSON. (Closed)
Patch Set: Created methods to surface zone memory information for each isolate and thread in JSON. 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/service.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 19 matching lines...) Expand all
30 class Function; 30 class Function;
31 class GrowableObjectArray; 31 class GrowableObjectArray;
32 class HandleScope; 32 class HandleScope;
33 class Heap; 33 class Heap;
34 class Instance; 34 class Instance;
35 class Isolate; 35 class Isolate;
36 class Library; 36 class Library;
37 class LongJumpScope; 37 class LongJumpScope;
38 class Object; 38 class Object;
39 class OSThread; 39 class OSThread;
40 class JSONObject;
40 class PcDescriptors; 41 class PcDescriptors;
41 class RawBool; 42 class RawBool;
42 class RawObject; 43 class RawObject;
43 class RawCode; 44 class RawCode;
44 class RawError; 45 class RawError;
45 class RawGrowableObjectArray; 46 class RawGrowableObjectArray;
46 class RawString; 47 class RawString;
47 class RuntimeEntry; 48 class RuntimeEntry;
48 class Smi; 49 class Smi;
49 class StackResource; 50 class StackResource;
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 // Visit all object pointers. 640 // Visit all object pointers.
640 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); 641 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames);
641 642
642 bool IsValidLocalHandle(Dart_Handle object) const; 643 bool IsValidLocalHandle(Dart_Handle object) const;
643 int CountLocalHandles() const; 644 int CountLocalHandles() const;
644 int ZoneSizeInBytes() const; 645 int ZoneSizeInBytes() const;
645 void UnwindScopes(uword stack_marker); 646 void UnwindScopes(uword stack_marker);
646 647
647 void InitVMConstants(); 648 void InitVMConstants();
648 649
650 #ifndef PRODUCT
651 void PrintJSON(JSONStream* stream) const;
652 #endif
653
649 private: 654 private:
650 template <class T> 655 template <class T>
651 T* AllocateReusableHandle(); 656 T* AllocateReusableHandle();
652 657
653 // Accessed from generated code: 658 // Accessed from generated code:
654 uword stack_limit_; 659 uword stack_limit_;
655 uword stack_overflow_flags_; 660 uword stack_overflow_flags_;
656 Isolate* isolate_; 661 Isolate* isolate_;
657 Heap* heap_; 662 Heap* heap_;
658 uword top_exit_frame_info_; 663 uword top_exit_frame_info_;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 // Disable thread interrupts. 781 // Disable thread interrupts.
777 class DisableThreadInterruptsScope : public StackResource { 782 class DisableThreadInterruptsScope : public StackResource {
778 public: 783 public:
779 explicit DisableThreadInterruptsScope(Thread* thread); 784 explicit DisableThreadInterruptsScope(Thread* thread);
780 ~DisableThreadInterruptsScope(); 785 ~DisableThreadInterruptsScope();
781 }; 786 };
782 787
783 } // namespace dart 788 } // namespace dart
784 789
785 #endif // RUNTIME_VM_THREAD_H_ 790 #endif // RUNTIME_VM_THREAD_H_
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698