| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 // Writes a heap dump record to the output stream. | 260 // Writes a heap dump record to the output stream. |
| 261 void WriteHeapDump(); | 261 void WriteHeapDump(); |
| 262 | 262 |
| 263 // Writes a sub-record to the heap dump record. | 263 // Writes a sub-record to the heap dump record. |
| 264 void WriteClassDump(const RawClass* raw_class); | 264 void WriteClassDump(const RawClass* raw_class); |
| 265 void WriteFakeClassDump(FakeClass fake_class, FakeClass fake_super_class); | 265 void WriteFakeClassDump(FakeClass fake_class, FakeClass fake_super_class); |
| 266 void WriteInstanceDump(const RawObject* raw_obj); | 266 void WriteInstanceDump(const RawObject* raw_obj); |
| 267 void WriteSmiInstanceDump(const RawSmi* raw_smi); | 267 void WriteSmiInstanceDump(const RawSmi* raw_smi); |
| 268 void WriteObjectArrayDump(const RawArray* raw_array); | 268 void WriteObjectArrayDump(const RawArray* raw_array); |
| 269 void WritePrimitiveArrayDump(const RawByteArray* raw_byte_array, | 269 void WritePrimitiveArrayDump(const RawTypedData* raw_byte_array, |
| 270 uint8_t tag, | 270 uint8_t tag, |
| 271 const void* data); | 271 const void* data); |
| 272 | 272 |
| 273 static const RawClass* GetClass(const RawObject* raw_obj); | 273 static const RawClass* GetClass(const RawObject* raw_obj); |
| 274 static const RawClass* GetSuperClass(const RawClass* raw_class); | 274 static const RawClass* GetSuperClass(const RawClass* raw_class); |
| 275 | 275 |
| 276 Dart_FileWriteCallback write_callback_; | 276 Dart_FileWriteCallback write_callback_; |
| 277 | 277 |
| 278 void* output_stream_; | 278 void* output_stream_; |
| 279 | 279 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 virtual void VisitObject(RawObject* obj); | 328 virtual void VisitObject(RawObject* obj); |
| 329 | 329 |
| 330 private: | 330 private: |
| 331 HeapProfiler* profiler_; | 331 HeapProfiler* profiler_; |
| 332 DISALLOW_COPY_AND_ASSIGN(HeapProfilerObjectVisitor); | 332 DISALLOW_COPY_AND_ASSIGN(HeapProfilerObjectVisitor); |
| 333 }; | 333 }; |
| 334 | 334 |
| 335 } // namespace dart | 335 } // namespace dart |
| 336 | 336 |
| 337 #endif // VM_HEAP_PROFILER_H_ | 337 #endif // VM_HEAP_PROFILER_H_ |
| OLD | NEW |