| 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 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 | 1094 |
| 1095 class HeapSnapshotGenerator : public SnapshottingProgressReportingInterface { | 1095 class HeapSnapshotGenerator : public SnapshottingProgressReportingInterface { |
| 1096 public: | 1096 public: |
| 1097 HeapSnapshotGenerator(HeapSnapshot* snapshot, | 1097 HeapSnapshotGenerator(HeapSnapshot* snapshot, |
| 1098 v8::ActivityControl* control); | 1098 v8::ActivityControl* control); |
| 1099 bool GenerateSnapshot(); | 1099 bool GenerateSnapshot(); |
| 1100 | 1100 |
| 1101 private: | 1101 private: |
| 1102 bool ApproximateRetainedSizes(); | 1102 bool ApproximateRetainedSizes(); |
| 1103 bool BuildDominatorTree(const Vector<HeapEntry*>& entries, | 1103 bool BuildDominatorTree(const Vector<HeapEntry*>& entries, |
| 1104 Vector<HeapEntry*>* dominators); | 1104 Vector<int>* dominators); |
| 1105 bool CountEntriesAndReferences(); | 1105 bool CountEntriesAndReferences(); |
| 1106 bool FillReferences(); | 1106 bool FillReferences(); |
| 1107 void FillReversePostorderIndexes(Vector<HeapEntry*>* entries); | 1107 void FillReversePostorderIndexes(Vector<HeapEntry*>* entries); |
| 1108 void ProgressStep(); | 1108 void ProgressStep(); |
| 1109 bool ProgressReport(bool force = false); | 1109 bool ProgressReport(bool force = false); |
| 1110 bool SetEntriesDominators(); | 1110 bool SetEntriesDominators(); |
| 1111 void SetProgressTotal(int iterations_count); | 1111 void SetProgressTotal(int iterations_count); |
| 1112 | 1112 |
| 1113 HeapSnapshot* snapshot_; | 1113 HeapSnapshot* snapshot_; |
| 1114 v8::ActivityControl* control_; | 1114 v8::ActivityControl* control_; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 | 1172 |
| 1173 friend class HeapSnapshotJSONSerializerEnumerator; | 1173 friend class HeapSnapshotJSONSerializerEnumerator; |
| 1174 friend class HeapSnapshotJSONSerializerIterator; | 1174 friend class HeapSnapshotJSONSerializerIterator; |
| 1175 | 1175 |
| 1176 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1176 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
| 1177 }; | 1177 }; |
| 1178 | 1178 |
| 1179 } } // namespace v8::internal | 1179 } } // namespace v8::internal |
| 1180 | 1180 |
| 1181 #endif // V8_PROFILE_GENERATOR_H_ | 1181 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |