| 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_HEAP_PROFILER_H_ | 5 #ifndef VM_HEAP_PROFILER_H_ |
| 6 #define VM_HEAP_PROFILER_H_ | 6 #define VM_HEAP_PROFILER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 void WriteHeapSummary(uint32_t total_live_bytes, | 235 void WriteHeapSummary(uint32_t total_live_bytes, |
| 236 uint32_t total_live_instances, | 236 uint32_t total_live_instances, |
| 237 uint64_t total_bytes_allocated, | 237 uint64_t total_bytes_allocated, |
| 238 uint64_t total_instances_allocated); | 238 uint64_t total_instances_allocated); |
| 239 | 239 |
| 240 // Writes a heap dump record to the output stream. | 240 // Writes a heap dump record to the output stream. |
| 241 void WriteHeapDump(); | 241 void WriteHeapDump(); |
| 242 | 242 |
| 243 // Writes a sub-record to the heap dump record. | 243 // Writes a sub-record to the heap dump record. |
| 244 void WriteClassDump(const RawClass* raw_class); | 244 void WriteClassDump(const RawClass* raw_class); |
| 245 void WriteSmiDump(const RawSmi* raw_smi); |
| 245 void WriteInstanceDump(const RawObject* raw_obj); | 246 void WriteInstanceDump(const RawObject* raw_obj); |
| 246 void WriteObjectArrayDump(const RawArray* raw_array); | 247 void WriteObjectArrayDump(const RawArray* raw_array); |
| 247 void WritePrimitiveArrayDump(const RawByteArray* raw_byte_array, | 248 void WritePrimitiveArrayDump(const RawByteArray* raw_byte_array, |
| 248 uint8_t tag, | 249 uint8_t tag, |
| 249 const void* data); | 250 const void* data); |
| 250 | 251 |
| 251 static const RawClass* GetClass(const RawObject* raw_obj); | 252 static const RawClass* GetClass(const RawObject* raw_obj); |
| 252 static const RawClass* GetSuperClass(const RawClass* raw_class); | 253 static const RawClass* GetSuperClass(const RawClass* raw_class); |
| 253 | 254 |
| 254 Dart_FileWriteCallback write_callback_; | 255 Dart_FileWriteCallback write_callback_; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 virtual void VisitObject(RawObject* obj); | 307 virtual void VisitObject(RawObject* obj); |
| 307 | 308 |
| 308 private: | 309 private: |
| 309 HeapProfiler* profiler_; | 310 HeapProfiler* profiler_; |
| 310 DISALLOW_COPY_AND_ASSIGN(HeapProfilerObjectVisitor); | 311 DISALLOW_COPY_AND_ASSIGN(HeapProfilerObjectVisitor); |
| 311 }; | 312 }; |
| 312 | 313 |
| 313 } // namespace dart | 314 } // namespace dart |
| 314 | 315 |
| 315 #endif // VM_HEAP_PROFILER_H_ | 316 #endif // VM_HEAP_PROFILER_H_ |
| OLD | NEW |