OLD | NEW |
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_CLASS_TABLE_H_ | 5 #ifndef VM_CLASS_TABLE_H_ |
6 #define VM_CLASS_TABLE_H_ | 6 #define VM_CLASS_TABLE_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/bitfield.h" | 9 #include "vm/bitfield.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 static intptr_t SizeOffsetFor(intptr_t cid, bool is_new_space); | 211 static intptr_t SizeOffsetFor(intptr_t cid, bool is_new_space); |
212 | 212 |
213 ClassHeapStats* StatsWithUpdatedSize(intptr_t cid); | 213 ClassHeapStats* StatsWithUpdatedSize(intptr_t cid); |
214 | 214 |
215 void AllocationProfilePrintJSON(JSONStream* stream); | 215 void AllocationProfilePrintJSON(JSONStream* stream); |
216 void ResetAllocationAccumulators(); | 216 void ResetAllocationAccumulators(); |
217 | 217 |
218 // Deallocates table copies. Do not call during concurrent access to table. | 218 // Deallocates table copies. Do not call during concurrent access to table. |
219 void FreeOldTables(); | 219 void FreeOldTables(); |
220 | 220 |
221 void TraceAllocationsFor(intptr_t cid, bool trace); | 221 void SetTraceAllocationFor(intptr_t cid, bool trace); |
| 222 bool TraceAllocationFor(intptr_t cid); |
222 | 223 |
223 private: | 224 private: |
224 friend class MarkingVisitor; | 225 friend class MarkingVisitor; |
225 friend class ScavengerVisitor; | 226 friend class ScavengerVisitor; |
226 friend class ClassHeapStatsTestHelper; | 227 friend class ClassHeapStatsTestHelper; |
227 static const int initial_capacity_ = 512; | 228 static const int initial_capacity_ = 512; |
228 static const int capacity_increment_ = 256; | 229 static const int capacity_increment_ = 256; |
229 | 230 |
230 static bool ShouldUpdateSizeForClassId(intptr_t cid); | 231 static bool ShouldUpdateSizeForClassId(intptr_t cid); |
231 | 232 |
(...skipping 12 matching lines...) Expand all Loading... |
244 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); | 245 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); |
245 void UpdateLiveOld(intptr_t cid, intptr_t size); | 246 void UpdateLiveOld(intptr_t cid, intptr_t size); |
246 void UpdateLiveNew(intptr_t cid, intptr_t size); | 247 void UpdateLiveNew(intptr_t cid, intptr_t size); |
247 | 248 |
248 DISALLOW_COPY_AND_ASSIGN(ClassTable); | 249 DISALLOW_COPY_AND_ASSIGN(ClassTable); |
249 }; | 250 }; |
250 | 251 |
251 } // namespace dart | 252 } // namespace dart |
252 | 253 |
253 #endif // VM_CLASS_TABLE_H_ | 254 #endif // VM_CLASS_TABLE_H_ |
OLD | NEW |