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

Side by Side Diff: src/heap-profiler.cc

Issue 95283003: Do not put allocated block into HeapObjectsMap (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reupload take 3 Created 7 years 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
« no previous file with comments | « src/heap-profiler.h ('k') | src/heap-snapshot-generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009-2010 the V8 project authors. All rights reserved. 1 // Copyright 2009-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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 return v8::HeapProfiler::kUnknownObjectId; 134 return v8::HeapProfiler::kUnknownObjectId;
135 return snapshots_->FindObjectId(HeapObject::cast(*obj)->address()); 135 return snapshots_->FindObjectId(HeapObject::cast(*obj)->address());
136 } 136 }
137 137
138 138
139 void HeapProfiler::ObjectMoveEvent(Address from, Address to, int size) { 139 void HeapProfiler::ObjectMoveEvent(Address from, Address to, int size) {
140 snapshots_->ObjectMoveEvent(from, to, size); 140 snapshots_->ObjectMoveEvent(from, to, size);
141 } 141 }
142 142
143 143
144 void HeapProfiler::NewObjectEvent(Address addr, int size) { 144 void HeapProfiler::AllocationEvent(Address addr, int size) {
145 snapshots_->NewObjectEvent(addr, size); 145 snapshots_->AllocationEvent(addr, size);
146 } 146 }
147 147
148 148
149 void HeapProfiler::UpdateObjectSizeEvent(Address addr, int size) { 149 void HeapProfiler::UpdateObjectSizeEvent(Address addr, int size) {
150 snapshots_->UpdateObjectSizeEvent(addr, size); 150 snapshots_->UpdateObjectSizeEvent(addr, size);
151 } 151 }
152 152
153 153
154 void HeapProfiler::SetRetainedObjectInfo(UniqueId id, 154 void HeapProfiler::SetRetainedObjectInfo(UniqueId id,
155 RetainedObjectInfo* info) { 155 RetainedObjectInfo* info) {
(...skipping 10 matching lines...) Expand all
166 166
167 167
168 void HeapProfiler::StopHeapAllocationsRecording() { 168 void HeapProfiler::StopHeapAllocationsRecording() {
169 StopHeapObjectsTracking(); 169 StopHeapObjectsTracking();
170 heap()->EnableInlineAllocation(); 170 heap()->EnableInlineAllocation();
171 is_tracking_allocations_ = false; 171 is_tracking_allocations_ = false;
172 } 172 }
173 173
174 174
175 } } // namespace v8::internal 175 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-profiler.h ('k') | src/heap-snapshot-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698