OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6230 break; | 6230 break; |
6231 default: | 6231 default: |
6232 UNREACHABLE(); | 6232 UNREACHABLE(); |
6233 } | 6233 } |
6234 return reinterpret_cast<const HeapSnapshot*>( | 6234 return reinterpret_cast<const HeapSnapshot*>( |
6235 i::HeapProfiler::TakeSnapshot( | 6235 i::HeapProfiler::TakeSnapshot( |
6236 *Utils::OpenHandle(*title), internal_type, control)); | 6236 *Utils::OpenHandle(*title), internal_type, control)); |
6237 } | 6237 } |
6238 | 6238 |
6239 | 6239 |
| 6240 void HeapProfiler::StartHeapObjectsTracking() { |
| 6241 i::Isolate* isolate = i::Isolate::Current(); |
| 6242 IsDeadCheck(isolate, "v8::HeapProfiler::StartHeapObjectsTracking"); |
| 6243 i::HeapProfiler::StartHeapObjectsTracking(); |
| 6244 } |
| 6245 |
| 6246 |
| 6247 void HeapProfiler::StopHeapObjectsTracking() { |
| 6248 i::Isolate* isolate = i::Isolate::Current(); |
| 6249 IsDeadCheck(isolate, "v8::HeapProfiler::StopHeapObjectsTracking"); |
| 6250 i::HeapProfiler::StopHeapObjectsTracking(); |
| 6251 } |
| 6252 |
| 6253 |
| 6254 void HeapProfiler::PushHeapObjectsStats(OutputStream* stream) { |
| 6255 i::Isolate* isolate = i::Isolate::Current(); |
| 6256 IsDeadCheck(isolate, "v8::HeapProfiler::PushHeapObjectsStats"); |
| 6257 return i::HeapProfiler::PushHeapObjectsStats(stream); |
| 6258 } |
| 6259 |
| 6260 |
6240 void HeapProfiler::DeleteAllSnapshots() { | 6261 void HeapProfiler::DeleteAllSnapshots() { |
6241 i::Isolate* isolate = i::Isolate::Current(); | 6262 i::Isolate* isolate = i::Isolate::Current(); |
6242 IsDeadCheck(isolate, "v8::HeapProfiler::DeleteAllSnapshots"); | 6263 IsDeadCheck(isolate, "v8::HeapProfiler::DeleteAllSnapshots"); |
6243 i::HeapProfiler::DeleteAllSnapshots(); | 6264 i::HeapProfiler::DeleteAllSnapshots(); |
6244 } | 6265 } |
6245 | 6266 |
6246 | 6267 |
6247 void HeapProfiler::DefineWrapperClass(uint16_t class_id, | 6268 void HeapProfiler::DefineWrapperClass(uint16_t class_id, |
6248 WrapperInfoCallback callback) { | 6269 WrapperInfoCallback callback) { |
6249 i::Isolate::Current()->heap_profiler()->DefineWrapperClass(class_id, | 6270 i::Isolate::Current()->heap_profiler()->DefineWrapperClass(class_id, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6379 | 6400 |
6380 | 6401 |
6381 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6402 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6382 HandleScopeImplementer* scope_implementer = | 6403 HandleScopeImplementer* scope_implementer = |
6383 reinterpret_cast<HandleScopeImplementer*>(storage); | 6404 reinterpret_cast<HandleScopeImplementer*>(storage); |
6384 scope_implementer->IterateThis(v); | 6405 scope_implementer->IterateThis(v); |
6385 return storage + ArchiveSpacePerThread(); | 6406 return storage + ArchiveSpacePerThread(); |
6386 } | 6407 } |
6387 | 6408 |
6388 } } // namespace v8::internal | 6409 } } // namespace v8::internal |
OLD | NEW |