| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 V8HeapExplorer(HeapSnapshot* snapshot, | 917 V8HeapExplorer(HeapSnapshot* snapshot, |
| 918 SnapshottingProgressReportingInterface* progress); | 918 SnapshottingProgressReportingInterface* progress); |
| 919 virtual ~V8HeapExplorer(); | 919 virtual ~V8HeapExplorer(); |
| 920 virtual HeapEntry* AllocateEntry( | 920 virtual HeapEntry* AllocateEntry( |
| 921 HeapThing ptr, int children_count, int retainers_count); | 921 HeapThing ptr, int children_count, int retainers_count); |
| 922 void AddRootEntries(SnapshotFillerInterface* filler); | 922 void AddRootEntries(SnapshotFillerInterface* filler); |
| 923 int EstimateObjectsCount(HeapIterator* iterator); | 923 int EstimateObjectsCount(HeapIterator* iterator); |
| 924 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); | 924 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); |
| 925 void TagGlobalObjects(); | 925 void TagGlobalObjects(); |
| 926 | 926 |
| 927 static String* GetConstructorName(JSObject* object); |
| 928 |
| 927 static HeapObject* const kInternalRootObject; | 929 static HeapObject* const kInternalRootObject; |
| 928 | 930 |
| 929 private: | 931 private: |
| 930 HeapEntry* AddEntry( | 932 HeapEntry* AddEntry( |
| 931 HeapObject* object, int children_count, int retainers_count); | 933 HeapObject* object, int children_count, int retainers_count); |
| 932 HeapEntry* AddEntry(HeapObject* object, | 934 HeapEntry* AddEntry(HeapObject* object, |
| 933 HeapEntry::Type type, | 935 HeapEntry::Type type, |
| 934 const char* name, | 936 const char* name, |
| 935 int children_count, | 937 int children_count, |
| 936 int retainers_count); | 938 int retainers_count); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 int next_node_id_; | 1117 int next_node_id_; |
| 1116 int next_string_id_; | 1118 int next_string_id_; |
| 1117 OutputStreamWriter* writer_; | 1119 OutputStreamWriter* writer_; |
| 1118 | 1120 |
| 1119 friend class HeapSnapshotJSONSerializerEnumerator; | 1121 friend class HeapSnapshotJSONSerializerEnumerator; |
| 1120 friend class HeapSnapshotJSONSerializerIterator; | 1122 friend class HeapSnapshotJSONSerializerIterator; |
| 1121 | 1123 |
| 1122 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1124 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
| 1123 }; | 1125 }; |
| 1124 | 1126 |
| 1125 | |
| 1126 String* GetConstructorNameForHeapProfile(JSObject* object); | |
| 1127 | |
| 1128 } } // namespace v8::internal | 1127 } } // namespace v8::internal |
| 1129 | 1128 |
| 1130 #endif // V8_PROFILE_GENERATOR_H_ | 1129 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |