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

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

Issue 14623015: Potentially fix the crash reported in Issue 10385 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months 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
« no previous file with comments | « no previous file | runtime/vm/heap_profiler.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) 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
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 RawTypedData* raw_byte_array, 269 void WritePrimitiveArrayDump(const RawTypedData* raw_byte_array, uint8_t tag);
270 uint8_t tag,
271 const void* data);
272 270
273 static const RawClass* GetClass(const RawObject* raw_obj); 271 static const RawClass* GetClass(const RawObject* raw_obj);
274 static const RawClass* GetSuperClass(const RawClass* raw_class); 272 static const RawClass* GetSuperClass(const RawClass* raw_class);
275 273
276 Dart_FileWriteCallback write_callback_; 274 Dart_FileWriteCallback write_callback_;
277 275
278 void* output_stream_; 276 void* output_stream_;
279 277
280 Record* heap_dump_record_; 278 Record* heap_dump_record_;
281 279
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 virtual void VisitObject(RawObject* obj); 326 virtual void VisitObject(RawObject* obj);
329 327
330 private: 328 private:
331 HeapProfiler* profiler_; 329 HeapProfiler* profiler_;
332 DISALLOW_COPY_AND_ASSIGN(HeapProfilerObjectVisitor); 330 DISALLOW_COPY_AND_ASSIGN(HeapProfilerObjectVisitor);
333 }; 331 };
334 332
335 } // namespace dart 333 } // namespace dart
336 334
337 #endif // VM_HEAP_PROFILER_H_ 335 #endif // VM_HEAP_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/heap_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698