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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1014 void SetPropertyReference(HeapObject* parent_obj, | 1014 void SetPropertyReference(HeapObject* parent_obj, |
1015 HeapEntry* parent, | 1015 HeapEntry* parent, |
1016 String* reference_name, | 1016 String* reference_name, |
1017 Object* child, | 1017 Object* child, |
1018 const char* name_format_string = NULL, | 1018 const char* name_format_string = NULL, |
1019 int field_offset = -1); | 1019 int field_offset = -1); |
1020 void SetPropertyShortcutReference(HeapObject* parent_obj, | 1020 void SetPropertyShortcutReference(HeapObject* parent_obj, |
1021 HeapEntry* parent, | 1021 HeapEntry* parent, |
1022 String* reference_name, | 1022 String* reference_name, |
1023 Object* child); | 1023 Object* child); |
1024 void SetWindowReference(Object* window); | 1024 void SetUserGlobalReference(Object* window); |
1025 void SetRootGcRootsReference(); | 1025 void SetRootGcRootsReference(); |
1026 void SetGcRootsReference(VisitorSynchronization::SyncTag tag); | 1026 void SetGcRootsReference(VisitorSynchronization::SyncTag tag); |
1027 void SetGcSubrootReference( | 1027 void SetGcSubrootReference( |
1028 VisitorSynchronization::SyncTag tag, bool is_weak, Object* child); | 1028 VisitorSynchronization::SyncTag tag, bool is_weak, Object* child); |
1029 void SetObjectName(HeapObject* object); | 1029 void SetObjectName(HeapObject* object); |
1030 void TagObject(Object* obj, const char* tag); | 1030 void TagObject(Object* obj, const char* tag); |
1031 | 1031 |
1032 HeapEntry* GetEntry(Object* obj); | 1032 HeapEntry* GetEntry(Object* obj); |
1033 | 1033 |
1034 static inline HeapObject* GetNthGcSubrootObject(int delta); | 1034 static inline HeapObject* GetNthGcSubrootObject(int delta); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1119 v8::ActivityControl* control); | 1119 v8::ActivityControl* control); |
1120 bool GenerateSnapshot(); | 1120 bool GenerateSnapshot(); |
1121 | 1121 |
1122 private: | 1122 private: |
1123 bool BuildDominatorTree(const Vector<HeapEntry*>& entries, | 1123 bool BuildDominatorTree(const Vector<HeapEntry*>& entries, |
1124 Vector<int>* dominators); | 1124 Vector<int>* dominators); |
1125 bool CalculateRetainedSizes(); | 1125 bool CalculateRetainedSizes(); |
1126 bool CountEntriesAndReferences(); | 1126 bool CountEntriesAndReferences(); |
1127 bool FillReferences(); | 1127 bool FillReferences(); |
1128 void FillPostorderIndexes(Vector<HeapEntry*>* entries); | 1128 void FillPostorderIndexes(Vector<HeapEntry*>* entries); |
1129 bool IsWindowReference(const HeapGraphEdge& edge); | 1129 bool IsWindowReference(const HeapGraphEdge& edge); |
mnaganov (inactive)
2012/04/17 14:16:14
-> IsUserGlobalReference?
alexeif
2012/04/17 15:30:10
Done.
| |
1130 void MarkWindowReachableObjects(); | 1130 void MarkWindowReachableObjects(); |
1131 void ProgressStep(); | 1131 void ProgressStep(); |
1132 bool ProgressReport(bool force = false); | 1132 bool ProgressReport(bool force = false); |
1133 bool SetEntriesDominators(); | 1133 bool SetEntriesDominators(); |
1134 void SetProgressTotal(int iterations_count); | 1134 void SetProgressTotal(int iterations_count); |
1135 | 1135 |
1136 HeapSnapshot* snapshot_; | 1136 HeapSnapshot* snapshot_; |
1137 v8::ActivityControl* control_; | 1137 v8::ActivityControl* control_; |
1138 V8HeapExplorer v8_heap_explorer_; | 1138 V8HeapExplorer v8_heap_explorer_; |
1139 NativeObjectsExplorer dom_explorer_; | 1139 NativeObjectsExplorer dom_explorer_; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1193 | 1193 |
1194 friend class HeapSnapshotJSONSerializerEnumerator; | 1194 friend class HeapSnapshotJSONSerializerEnumerator; |
1195 friend class HeapSnapshotJSONSerializerIterator; | 1195 friend class HeapSnapshotJSONSerializerIterator; |
1196 | 1196 |
1197 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1197 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
1198 }; | 1198 }; |
1199 | 1199 |
1200 } } // namespace v8::internal | 1200 } } // namespace v8::internal |
1201 | 1201 |
1202 #endif // V8_PROFILE_GENERATOR_H_ | 1202 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |