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

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

Issue 11478012: Provide a mechanism for dumping of heap profiles on predefined events. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_HEAP_H_ 5 #ifndef VM_HEAP_H_
6 #define VM_HEAP_H_ 6 #define VM_HEAP_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Print heap sizes. 151 // Print heap sizes.
152 void PrintSizes() const; 152 void PrintSizes() const;
153 153
154 // Returns the [lowest, highest) addresses in the heap. 154 // Returns the [lowest, highest) addresses in the heap.
155 void StartEndAddress(uword* start, uword* end) const; 155 void StartEndAddress(uword* start, uword* end) const;
156 156
157 ObjectSet* CreateAllocatedObjectSet() const; 157 ObjectSet* CreateAllocatedObjectSet() const;
158 158
159 // Generates a profile of the current and VM isolate heaps. 159 // Generates a profile of the current and VM isolate heaps.
160 void Profile(Dart_FileWriteCallback callback, void* stream) const; 160 void Profile(Dart_FileWriteCallback callback, void* stream) const;
161 void ProfileToFile(const char* filename) const;
161 162
162 static const char* GCReasonToString(GCReason gc_reason); 163 static const char* GCReasonToString(GCReason gc_reason);
163 164
164 // Associates a peer with an object. If an object has a peer, it is 165 // Associates a peer with an object. If an object has a peer, it is
165 // replaced. A value of NULL disassociate an object from its peer. 166 // replaced. A value of NULL disassociate an object from its peer.
166 void SetPeer(RawObject* raw_obj, void* peer); 167 void SetPeer(RawObject* raw_obj, void* peer);
167 168
168 // Retrieves the peer associated with an object. Returns NULL if 169 // Retrieves the peer associated with an object. Returns NULL if
169 // there is no association. 170 // there is no association.
170 void* GetPeer(RawObject* raw_obj); 171 void* GetPeer(RawObject* raw_obj);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 public: 204 public:
204 NoGCScope() {} 205 NoGCScope() {}
205 private: 206 private:
206 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 207 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
207 }; 208 };
208 #endif // defined(DEBUG) 209 #endif // defined(DEBUG)
209 210
210 } // namespace dart 211 } // namespace dart
211 212
212 #endif // VM_HEAP_H_ 213 #endif // VM_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698