v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <heap-profiler.h>
Definition at line 40 of file heap-profiler.h.
|
explicit |
Definition at line 38 of file heap-profiler.cc.
~HeapProfiler | ( | ) |
Definition at line 51 of file heap-profiler.cc.
|
inline |
Definition at line 58 of file heap-profiler.h.
Referenced by V8HeapExplorer::AddEntry(), and HeapSnapshotJSONSerializer::Serialize().
void AllocationEvent | ( | Address | addr, |
int | size | ||
) |
Definition at line 178 of file heap-profiler.cc.
Referenced by Heap::AllocateRaw().
void ClearHeapObjectMap | ( | ) |
Definition at line 218 of file heap-profiler.cc.
References HeapProfiler::is_tracking_allocations().
void DefineWrapperClass | ( | uint16_t | class_id, |
v8::HeapProfiler::WrapperInfoCallback | callback | ||
) |
Definition at line 69 of file heap-profiler.cc.
References ASSERT, HeapProfiler::kPersistentHandleNoClassId, and v8::internal::NULL.
void DeleteAllSnapshots | ( | ) |
Definition at line 57 of file heap-profiler.cc.
Referenced by HeapSnapshot::Delete().
v8::RetainedObjectInfo * ExecuteWrapperClassCallback | ( | uint16_t | class_id, |
Object ** | wrapper | ||
) |
Definition at line 80 of file heap-profiler.cc.
References v8::internal::NULL, and Utils::ToLocal().
Handle< HeapObject > FindHeapObjectById | ( | SnapshotObjectId | id | ) |
Definition at line 198 of file heap-profiler.cc.
References ASSERT, Heap::CollectAllGarbage(), Heap::kMakeHeapIterableMask, v8::internal::NULL, and obj.
size_t GetMemorySizeUsedByProfiler | ( | ) |
Definition at line 141 of file heap-profiler.cc.
References v8::internal::GetMemoryUsedByList(), and v8::internal::size.
HeapSnapshot * GetSnapshot | ( | int | index | ) |
Definition at line 158 of file heap-profiler.cc.
SnapshotObjectId GetSnapshotObjectId | ( | Handle< Object > | obj | ) |
Definition at line 163 of file heap-profiler.cc.
References HeapObject::address(), HeapObject::cast(), and HeapProfiler::kUnknownObjectId.
int GetSnapshotsCount | ( | ) |
Definition at line 153 of file heap-profiler.cc.
Referenced by HeapSnapshot::Delete().
|
inline |
Definition at line 61 of file heap-profiler.h.
Referenced by HeapSnapshot::RememberLastJSObjectId(), and HeapObjectsTracker::~HeapObjectsTracker().
|
inline |
Definition at line 85 of file heap-profiler.h.
Referenced by Heap::AllocateRaw(), HeapProfiler::ClearHeapObjectMap(), HeapProfiler::StartHeapObjectsTracking(), and HeapProfiler::StopHeapObjectsTracking().
|
inline |
Definition at line 84 of file heap-profiler.h.
Referenced by MarkCompactCollector::MigrateObject().
|
inline |
Definition at line 62 of file heap-profiler.h.
Definition at line 170 of file heap-profiler.cc.
Referenced by MarkCompactCollector::MigrateObject().
SnapshotObjectId PushHeapObjectsStats | ( | OutputStream * | stream | ) |
Definition at line 127 of file heap-profiler.cc.
void RemoveSnapshot | ( | HeapSnapshot * | snapshot | ) |
Definition at line 64 of file heap-profiler.cc.
Referenced by HeapSnapshot::Delete().
void SetRetainedObjectInfo | ( | UniqueId | id, |
RetainedObjectInfo * | info | ||
) |
Definition at line 191 of file heap-profiler.cc.
References Isolate::global_handles(), Heap::isolate(), and GlobalHandles::SetRetainedObjectInfo().
void StartHeapObjectsTracking | ( | bool | track_allocations | ) |
Definition at line 116 of file heap-profiler.cc.
References ASSERT, Heap::DisableInlineAllocation(), and HeapProfiler::is_tracking_allocations().
Referenced by HeapObjectsTracker::HeapObjectsTracker().
void StopHeapObjectsTracking | ( | ) |
Definition at line 132 of file heap-profiler.cc.
References Heap::EnableInlineAllocation(), HeapProfiler::is_tracking_allocations(), and v8::internal::NULL.
Referenced by HeapObjectsTracker::~HeapObjectsTracker().
HeapSnapshot * TakeSnapshot | ( | const char * | name, |
v8::ActivityControl * | control, | ||
v8::HeapProfiler::ObjectNameResolver * | resolver | ||
) |
Definition at line 88 of file heap-profiler.cc.
References HeapSnapshotGenerator::GenerateSnapshot(), and v8::internal::NULL.
Referenced by HeapProfiler::TakeSnapshot().
HeapSnapshot * TakeSnapshot | ( | String * | name, |
v8::ActivityControl * | control, | ||
v8::HeapProfiler::ObjectNameResolver * | resolver | ||
) |
Definition at line 108 of file heap-profiler.cc.
References HeapProfiler::TakeSnapshot().
void UpdateObjectSizeEvent | ( | Address | addr, |
int | size | ||
) |
Definition at line 186 of file heap-profiler.cc.