| Index: src/profile-generator.h
|
| diff --git a/src/profile-generator.h b/src/profile-generator.h
|
| index 51c867552bff647a22673f6546f5a875a7a146ad..966ae023b87edb1c7f4e885b7d7d6f542f9b9af5 100644
|
| --- a/src/profile-generator.h
|
| +++ b/src/profile-generator.h
|
| @@ -657,6 +657,7 @@ class HeapSnapshot {
|
| HeapEntry* gc_roots() { return gc_roots_entry_; }
|
| HeapEntry* natives_root() { return natives_root_entry_; }
|
| List<HeapEntry*>* entries() { return &entries_; }
|
| + int raw_entries_size() { return raw_entries_size_; }
|
|
|
| void AllocateEntries(
|
| int entries_count, int children_count, int retainers_count);
|
| @@ -692,9 +693,7 @@ class HeapSnapshot {
|
| char* raw_entries_;
|
| List<HeapEntry*> entries_;
|
| bool entries_sorted_;
|
| -#ifdef DEBUG
|
| int raw_entries_size_;
|
| -#endif
|
|
|
| friend class HeapSnapshotTester;
|
|
|
| @@ -1100,6 +1099,7 @@ class HeapSnapshotJSONSerializer {
|
| }
|
|
|
| void EnumerateNodes();
|
| + HeapSnapshot* CreateFakeSnapshot();
|
| int GetNodeId(HeapEntry* entry);
|
| int GetStringId(const char* s);
|
| void SerializeEdge(HeapGraphEdge* edge);
|
| @@ -1111,6 +1111,8 @@ class HeapSnapshotJSONSerializer {
|
| void SerializeStrings();
|
| void SortHashMap(HashMap* map, List<HashMap::Entry*>* sorted_entries);
|
|
|
| + static const int kMaxSerializableSnapshotRawSize;
|
| +
|
| HeapSnapshot* snapshot_;
|
| HashMap nodes_;
|
| HashMap strings_;
|
|
|