Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: src/profile-generator.h

Issue 6665038: Dramatically speed up detailed heap snapshot generation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 HeapEntry* parent, 1023 HeapEntry* parent,
1024 String* reference_name, 1024 String* reference_name,
1025 Object* child); 1025 Object* child);
1026 void SetElementReference(HeapObject* parent_obj, 1026 void SetElementReference(HeapObject* parent_obj,
1027 HeapEntry* parent, 1027 HeapEntry* parent,
1028 int index, 1028 int index,
1029 Object* child); 1029 Object* child);
1030 void SetInternalReference(HeapObject* parent_obj, 1030 void SetInternalReference(HeapObject* parent_obj,
1031 HeapEntry* parent, 1031 HeapEntry* parent,
1032 const char* reference_name, 1032 const char* reference_name,
1033 Object* child); 1033 Object* child,
1034 int field_offset = -1);
1034 void SetInternalReference(HeapObject* parent_obj, 1035 void SetInternalReference(HeapObject* parent_obj,
1035 HeapEntry* parent, 1036 HeapEntry* parent,
1036 int index, 1037 int index,
1037 Object* child); 1038 Object* child,
1039 int field_offset = -1);
1038 void SetHiddenReference(HeapObject* parent_obj, 1040 void SetHiddenReference(HeapObject* parent_obj,
1039 HeapEntry* parent, 1041 HeapEntry* parent,
1040 int index, 1042 int index,
1041 Object* child); 1043 Object* child);
1042 void SetPropertyReference(HeapObject* parent_obj, 1044 void SetPropertyReference(HeapObject* parent_obj,
1043 HeapEntry* parent, 1045 HeapEntry* parent,
1044 String* reference_name, 1046 String* reference_name,
1045 Object* child); 1047 Object* child,
1048 int field_offset = -1);
1046 void SetPropertyShortcutReference(HeapObject* parent_obj, 1049 void SetPropertyShortcutReference(HeapObject* parent_obj,
1047 HeapEntry* parent, 1050 HeapEntry* parent,
1048 String* reference_name, 1051 String* reference_name,
1049 Object* child); 1052 Object* child);
1050 void SetRootShortcutReference(Object* child); 1053 void SetRootShortcutReference(Object* child);
1051 void SetRootGcRootsReference(); 1054 void SetRootGcRootsReference();
1052 void SetGcRootsReference(Object* child); 1055 void SetGcRootsReference(Object* child);
1053 1056
1054 HeapEntry* GetEntry(Object* obj); 1057 HeapEntry* GetEntry(Object* obj);
1055 1058
1056 HeapSnapshot* snapshot_; 1059 HeapSnapshot* snapshot_;
1057 HeapSnapshotsCollection* collection_; 1060 HeapSnapshotsCollection* collection_;
1058 SnapshottingProgressReportingInterface* progress_; 1061 SnapshottingProgressReportingInterface* progress_;
1059 // Used during references extraction to mark heap objects that
1060 // are references via non-hidden properties.
1061 HeapObjectsSet known_references_;
1062 SnapshotFillerInterface* filler_; 1062 SnapshotFillerInterface* filler_;
1063 1063
1064 static HeapObject* const kGcRootsObject; 1064 static HeapObject* const kGcRootsObject;
1065 1065
1066 friend class IndexedReferencesExtractor; 1066 friend class IndexedReferencesExtractor;
1067 friend class RootsReferencesExtractor; 1067 friend class RootsReferencesExtractor;
1068 1068
1069 DISALLOW_COPY_AND_ASSIGN(V8HeapExplorer); 1069 DISALLOW_COPY_AND_ASSIGN(V8HeapExplorer);
1070 }; 1070 };
1071 1071
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 }; 1199 };
1200 1200
1201 1201
1202 String* GetConstructorNameForHeapProfile(JSObject* object); 1202 String* GetConstructorNameForHeapProfile(JSObject* object);
1203 1203
1204 } } // namespace v8::internal 1204 } } // namespace v8::internal
1205 1205
1206 #endif // ENABLE_LOGGING_AND_PROFILING 1206 #endif // ENABLE_LOGGING_AND_PROFILING
1207 1207
1208 #endif // V8_PROFILE_GENERATOR_H_ 1208 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/profile-generator.cc » ('j') | src/profile-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698