| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |