Index: runtime/vm/heap_profiler.h |
diff --git a/runtime/vm/heap_profiler.h b/runtime/vm/heap_profiler.h |
index 273dd46e3525af638395b911c3d77f3b73e225fb..f9369602277791370b026219497f9e5f4fefd36a 100644 |
--- a/runtime/vm/heap_profiler.h |
+++ b/runtime/vm/heap_profiler.h |
@@ -74,6 +74,22 @@ class HeapProfiler { |
kLong = 11 |
}; |
+ enum FakeClass { |
Ivan Posva
2013/01/12 00:58:10
Comment about spacing the ids.
|
+ kJavaLangClass = 1, |
+ kJavaLangClassLoader = 9, |
+ kJavaLangObject = 17, |
+ kJavaLangString = 25, |
+ kArrayObject = 33, |
+ kArrayBoolean = 41, |
+ kArrayChar = 49, |
+ kArrayFloat = 57, |
+ kArrayDouble = 65, |
+ kArrayByte = 73, |
+ kArrayShort = 81, |
+ kArrayInt = 89, |
+ kArrayLong = 98 |
Ivan Posva
2013/01/12 00:58:10
97
|
+ }; |
+ |
static const int kObjectIdSize = sizeof(uint64_t); // NOLINT |
HeapProfiler(Dart_FileWriteCallback callback, void* stream); |
@@ -219,14 +235,13 @@ class HeapProfiler { |
// Writes a record to the output stream. |
void WriteRecord(const Record& record); |
- |
// Writes a string in utf-8 record to the output stream. |
void WriteStringInUtf8(const char* c_string); |
void WriteStringInUtf8(const RawString* raw_string); |
- |
// Writes a load class record to the output stream. |
void WriteLoadClass(const RawClass* raw_class); |
+ void WriteFakeLoadClass(FakeClass fake_class, const char* class_name); |
// Writes an empty stack trace to the output stream. |
void WriteStackTrace(); |
@@ -242,6 +257,7 @@ class HeapProfiler { |
// Writes a sub-record to the heap dump record. |
void WriteClassDump(const RawClass* raw_class); |
+ void WriteFakeClassDump(FakeClass fake_class, FakeClass fake_super_class); |
void WriteInstanceDump(const RawObject* raw_obj); |
void WriteObjectArrayDump(const RawArray* raw_array); |
void WritePrimitiveArrayDump(const RawByteArray* raw_byte_array, |