![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <ctype.h>#include "v8.h"#include "allocation-tracker.h"#include "cctest.h"#include "hashmap.h"#include "heap-profiler.h"#include "snapshot.h"#include "debug.h"#include "utils-inl.h"#include "../include/v8-profiler.h"
Go to the source code of this file.
Data Structures | |
| class | GraphWithImplicitRefs |
| class | NameResolver |
Macros | |
| #define | CHECK_EQ_SNAPSHOT_OBJECT_ID(a, b) CHECK_EQ(static_cast<int32_t>(a), static_cast<int32_t>(b)) |
| #define | CHECK_NE_SNAPSHOT_OBJECT_ID(a, b) CHECK((a) != (b)) |
| #define | STRING_LITERAL_FOR_TEST "\"String \\n\\r\\u0008\\u0081\\u0101\\u0801\\u8001\"" |
Functions | |
| TEST (HeapSnapshot) | |
| TEST (HeapSnapshotObjectSizes) | |
| TEST (BoundFunctionInSnapshot) | |
| TEST (HeapSnapshotEntryChildren) | |
| TEST (HeapSnapshotCodeObjects) | |
| TEST (HeapSnapshotHeapNumbers) | |
| TEST (HeapSnapshotSlicedString) | |
| TEST (HeapSnapshotConsString) | |
| TEST (HeapSnapshotInternalReferences) | |
| TEST (HeapSnapshotAddressReuse) | |
| TEST (HeapEntryIdsAndArrayShift) | |
| TEST (HeapEntryIdsAndGC) | |
| TEST (HeapSnapshotRootPreservedAfterSorting) | |
| TEST (HeapSnapshotJSONSerialization) | |
| TEST (HeapSnapshotJSONSerializationAborting) | |
| TEST (HeapSnapshotObjectsStats) | |
| TEST (HeapObjectIds) | |
| TEST (HeapSnapshotGetNodeById) | |
| TEST (HeapSnapshotGetSnapshotObjectId) | |
| TEST (HeapSnapshotUnknownSnapshotObjectId) | |
| TEST (TakeHeapSnapshotAborting) | |
| TEST (HeapSnapshotRetainedObjectInfo) | |
| TEST (HeapSnapshotImplicitReferences) | |
| TEST (DeleteAllHeapSnapshots) | |
| TEST (DeleteHeapSnapshot) | |
| TEST (GlobalObjectName) | |
| TEST (GlobalObjectFields) | |
| TEST (NoHandleLeaks) | |
| TEST (NodesIteration) | |
| TEST (GetHeapValueForNode) | |
| TEST (GetHeapValueForDeletedObject) | |
| TEST (GetConstructorName) | |
| TEST (FastCaseAccessors) | |
| TEST (SlowCaseAccessors) | |
| TEST (HiddenPropertiesFastCase) | |
| bool | HasWeakEdge (const v8::HeapGraphNode *node) |
| bool | HasWeakGlobalHandle () |
| TEST (WeakGlobalHandle) | |
| TEST (SfiAndJsFunctionWeakRefs) | |
| TEST (AllStrongGcRootsHaveNames) | |
| TEST (NoRefsToNonEssentialEntries) | |
| TEST (MapHasDescriptorsAndTransitions) | |
| TEST (ManyLocalsInSharedContext) | |
| TEST (AllocationSitesAreVisible) | |
| TEST (JSFunctionHasCodeLink) | |
| TEST (CheckCodeNames) | |
| TEST (ArrayGrowLeftTrim) | |
| TEST (TrackHeapAllocations) | |
| TEST (TrackBumpPointerAllocations) | |
| TEST (TrackV8ApiAllocation) | |
| TEST (ArrayBufferAndArrayBufferView) | |
| TEST (ArrayBufferSharedBackingStore) | |
| TEST (BoxObject) | |
| TEST (AddressToTraceMap) | |
| #define CHECK_EQ_SNAPSHOT_OBJECT_ID | ( | a, | |
| b | |||
| ) | CHECK_EQ(static_cast<int32_t>(a), static_cast<int32_t>(b)) |
Definition at line 504 of file test-heap-profiler.cc.
Referenced by TEST().
| #define CHECK_NE_SNAPSHOT_OBJECT_ID | ( | a, | |
| b | |||
| ) | CHECK((a) != (b)) |
Definition at line 506 of file test-heap-profiler.cc.
Referenced by TEST().
| #define STRING_LITERAL_FOR_TEST "\"String \\n\\r\\u0008\\u0081\\u0101\\u0801\\u8001\"" |
Referenced by TEST().
| bool HasWeakEdge | ( | const v8::HeapGraphNode * | node | ) |
Definition at line 1820 of file test-heap-profiler.cc.
References HeapGraphNode::GetChild(), HeapGraphNode::GetChildrenCount(), HeapGraphEdge::GetType(), and HeapGraphEdge::kWeak.
Referenced by HasWeakGlobalHandle(), and TEST().
| bool HasWeakGlobalHandle | ( | ) |
Definition at line 1829 of file test-heap-profiler.cc.
References CHECK, CHECK_NE, Isolate::GetHeapProfiler(), HeapSnapshot::GetRoot(), HasWeakEdge(), CcTest::isolate(), HeapGraphNode::kSynthetic, NULL, and HeapProfiler::TakeHeapSnapshot().
Referenced by TEST().
| TEST | ( | HeapSnapshot | ) |
Definition at line 174 of file test-heap-profiler.cc.
References CHECK, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kProperty, and NULL.
| TEST | ( | HeapSnapshotObjectSizes | ) |
Definition at line 210 of file test-heap-profiler.cc.
References CHECK, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphNode::GetShallowSize(), HeapGraphEdge::kProperty, and NULL.
| TEST | ( | BoundFunctionInSnapshot | ) |
Definition at line 243 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphNode::GetName(), HeapGraphNode::kArray, HeapGraphNode::kClosure, HeapGraphEdge::kInternal, HeapGraphNode::kObject, HeapGraphEdge::kProperty, HeapGraphEdge::kShortcut, String::NewFromUtf8(), and NULL.
| TEST | ( | HeapSnapshotEntryChildren | ) |
Definition at line 283 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, HeapGraphNode::GetChild(), HeapGraphNode::GetChildrenCount(), HeapGraphEdge::GetFromNode(), Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kProperty, and NULL.
| TEST | ( | HeapSnapshotCodeObjects | ) |
Definition at line 309 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, code(), HeapGraphNode::GetChild(), HeapGraphNode::GetChildrenCount(), Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::GetToNode(), HeapGraphNode::GetType(), HeapGraphNode::kArray, HeapGraphNode::kClosure, HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, and NULL.
| TEST | ( | HeapSnapshotHeapNumbers | ) |
Definition at line 385 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphNode::GetType(), HeapGraphNode::kHeapNumber, HeapGraphEdge::kProperty, and NULL.
| TEST | ( | HeapSnapshotSlicedString | ) |
Definition at line 404 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphNode::GetType(), HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, HeapGraphNode::kSlicedString, and NULL.
| TEST | ( | HeapSnapshotConsString | ) |
Definition at line 432 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, v8::internal::CStrVector(), HeapProfiler::DeleteAllHeapSnapshots(), Isolate::factory(), Isolate::GetHeapProfiler(), Object::GetPrototype(), HeapGraphNode::GetType(), Context::Global(), CcTest::i_isolate(), Object::InternalFieldCount(), CcTest::isolate(), HeapGraphNode::kConsString, HeapGraphEdge::kInternal, HeapGraphNode::kString, ObjectTemplate::New(), NULL, Object::SetInternalField(), ObjectTemplate::SetInternalFieldCount(), and HeapProfiler::TakeHeapSnapshot().
| TEST | ( | HeapSnapshotInternalReferences | ) |
Definition at line 476 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Object::GetPrototype(), Context::Global(), Object::InternalFieldCount(), CcTest::isolate(), HeapGraphEdge::kInternal, Object::New(), ObjectTemplate::New(), NULL, obj, Object::SetInternalField(), ObjectTemplate::SetInternalFieldCount(), and HeapProfiler::TakeHeapSnapshot().
| TEST | ( | HeapSnapshotAddressReuse | ) |
Definition at line 509 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Heap::CollectAllGarbage(), HeapGraphNode::GetChild(), HeapGraphNode::GetChildrenCount(), Isolate::GetHeapProfiler(), HeapGraphNode::GetId(), Context::GetIsolate(), HeapSnapshot::GetMaxSnapshotJSObjectId(), HeapGraphEdge::GetToNode(), HeapGraphEdge::GetType(), CcTest::heap(), HeapGraphEdge::kElement, Heap::kNoGCFlags, HeapGraphEdge::kProperty, and NULL.
| TEST | ( | HeapEntryIdsAndArrayShift | ) |
Definition at line 550 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ_SNAPSHOT_OBJECT_ID, CHECK_NE, CHECK_NE_SNAPSHOT_OBJECT_ID, Heap::CollectAllGarbage(), Isolate::GetHeapProfiler(), HeapGraphNode::GetId(), Context::GetIsolate(), CcTest::heap(), HeapGraphEdge::kInternal, Heap::kNoGCFlags, HeapGraphEdge::kProperty, and NULL.
| TEST | ( | HeapEntryIdsAndGC | ) |
Definition at line 600 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ_SNAPSHOT_OBJECT_ID, CHECK_GT, CHECK_NE, CHECK_NE_SNAPSHOT_OBJECT_ID, Heap::CollectAllGarbage(), Isolate::GetHeapProfiler(), HeapGraphNode::GetId(), Context::GetIsolate(), HeapSnapshot::GetMaxSnapshotJSObjectId(), CcTest::heap(), Heap::kNoGCFlags, HeapGraphEdge::kProperty, and NULL.
| TEST | ( | HeapSnapshotRootPreservedAfterSorting | ) |
Definition at line 665 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapSnapshot::GetRoot(), and HeapSnapshot::GetSortedEntriesList().
| TEST | ( | HeapSnapshotJSONSerialization | ) |
Definition at line 725 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_GT, Object::Get(), Isolate::GetHeapProfiler(), Context::GetIsolate(), Context::Global(), Handle< T >::IsEmpty(), HeapSnapshot::kJSON, String::NewExternal(), HeapSnapshot::Serialize(), and STRING_LITERAL_FOR_TEST.
| TEST | ( | HeapSnapshotJSONSerializationAborting | ) |
Definition at line 832 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_GT, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapSnapshot::kJSON, and HeapSnapshot::Serialize().
| TEST | ( | HeapSnapshotObjectsStats | ) |
Definition at line 915 of file test-heap-profiler.cc.
References CHECK_EQ, CHECK_EQ_SNAPSHOT_OBJECT_ID, CHECK_GT, CHECK_LT, Heap::CollectAllGarbage(), Isolate::GetHeapProfiler(), Context::GetIsolate(), CcTest::heap(), Heap::kNoGCFlags, Array::Length(), Array::New(), Object::Set(), and HeapProfiler::StartTrackingHeapObjects().
| TEST | ( | HeapObjectIds | ) |
Definition at line 1055 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, HeapProfiler::ClearObjectIds(), Heap::CollectAllAvailableGarbage(), HeapProfiler::FindObjectById(), Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapProfiler::GetObjectId(), CcTest::heap(), Handle< T >::IsEmpty(), HeapProfiler::kUnknownObjectId, Object::New(), obj, HeapProfiler::StartTrackingHeapObjects(), and HeapProfiler::StopTrackingHeapObjects().
| TEST | ( | HeapSnapshotGetNodeById | ) |
Definition at line 1114 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapSnapshot::GetNodeById(), HeapSnapshot::GetRoot(), and NULL.
| TEST | ( | HeapSnapshotGetSnapshotObjectId | ) |
Definition at line 1129 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), HeapGraphNode::GetId(), Context::GetIsolate(), Context::Global(), Handle< T >::IsEmpty(), HeapGraphEdge::kProperty, HeapProfiler::kUnknownObjectId, and String::NewFromUtf8().
| TEST | ( | HeapSnapshotUnknownSnapshotObjectId | ) |
Definition at line 1154 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapSnapshot::GetNodeById(), HeapProfiler::kUnknownObjectId, and NULL.
| TEST | ( | TakeHeapSnapshotAborting | ) |
Definition at line 1190 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_GT, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapProfiler::GetSnapshotCount(), and NULL.
| TEST | ( | HeapSnapshotRetainedObjectInfo | ) |
Definition at line 1301 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, HeapGraphNode::GetChildrenCount(), Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapSnapshot::GetRoot(), HeapGraphEdge::kInternal, HeapGraphNode::kNative, HeapGraphNode::kString, HeapGraphNode::kSynthetic, NULL, PersistentBase< T >::SetWrapperClassId(), HeapProfiler::SetWrapperClassInfoProvider(), and HeapProfiler::TakeHeapSnapshot().
| TEST | ( | HeapSnapshotImplicitReferences | ) |
Definition at line 1403 of file test-heap-profiler.cc.
References V8::AddGCPrologueCallback(), CHECK, CHECK_EQ, GraphWithImplicitRefs::gcPrologue(), Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::GetName(), HeapGraphEdge::GetType(), HeapGraphNode::GetType(), HeapGraphEdge::kInternal, HeapGraphNode::kObject, HeapGraphEdge::kProperty, and V8::RemoveGCPrologueCallback().
| TEST | ( | DeleteAllHeapSnapshots | ) |
Definition at line 1437 of file test-heap-profiler.cc.
References CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), and NULL.
| TEST | ( | DeleteHeapSnapshot | ) |
Definition at line 1470 of file test-heap-profiler.cc.
References CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapSnapshot::GetUid(), NULL, v8::internal::s1, v8::internal::s2, and v8::internal::s3.
| TEST | ( | GlobalObjectName | ) |
Definition at line 1519 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), name, and NULL.
| TEST | ( | GlobalObjectFields | ) |
Definition at line 1540 of file test-heap-profiler.cc.
References CHECK, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kInternal, and NULL.
| TEST | ( | NoHandleLeaks | ) |
Definition at line 1564 of file test-heap-profiler.cc.
References CHECK_EQ, Isolate::GetHeapProfiler(), Context::GetIsolate(), CcTest::i_isolate(), name, and HandleScope::NumberOfHandles().
| TEST | ( | NodesIteration | ) |
Definition at line 1580 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapSnapshot::GetNode(), HeapSnapshot::GetNodesCount(), and NULL.
| TEST | ( | GetHeapValueForNode | ) |
Definition at line 1600 of file test-heap-profiler.cc.
References Local< T >::As(), CHECK, Isolate::GetHeapProfiler(), HeapGraphNode::GetId(), Context::GetIsolate(), Context::Global(), HeapGraphEdge::kProperty, Value::NumberValue(), and obj.
| TEST | ( | GetHeapValueForDeletedObject | ) |
Definition at line 1633 of file test-heap-profiler.cc.
References CHECK, Isolate::GetHeapProfiler(), HeapGraphNode::GetId(), Context::GetIsolate(), HeapGraphEdge::kProperty, and obj.
| TEST | ( | GetConstructorName | ) |
Definition at line 1670 of file test-heap-profiler.cc.
References Local< T >::As(), CHECK_EQ, Object::Get(), V8HeapExplorer::GetConstructorName(), Context::GetIsolate(), Context::Global(), and Utils::OpenHandle().
| TEST | ( | FastCaseAccessors | ) |
Definition at line 1717 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kProperty, and NULL.
| TEST | ( | SlowCaseAccessors | ) |
Definition at line 1750 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kProperty, and NULL.
| TEST | ( | HiddenPropertiesFastCase | ) |
Definition at line 1784 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), Context::Global(), Handle< T >::IsEmpty(), Value::IsObject(), HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, String::NewFromUtf8(), NULL, and Value::ToObject().
| TEST | ( | WeakGlobalHandle | ) |
Definition at line 1852 of file test-heap-profiler.cc.
References CHECK, Context::GetIsolate(), v8::internal::handle(), HasWeakGlobalHandle(), Object::New(), and PersistentBase< T >::SetWeak().
| TEST | ( | SfiAndJsFunctionWeakRefs | ) |
Definition at line 1866 of file test-heap-profiler.cc.
References CHECK, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HasWeakEdge(), HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, and NULL.
| TEST | ( | AllStrongGcRootsHaveNames | ) |
Definition at line 1915 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, HeapGraphNode::GetChild(), HeapGraphNode::GetChildrenCount(), Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::GetName(), HeapSnapshot::GetRoot(), HeapGraphEdge::GetType(), HeapGraphEdge::kInternal, HeapGraphNode::kSynthetic, name, and NULL.
| TEST | ( | NoRefsToNonEssentialEntries | ) |
Definition at line 1939 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, and NULL.
| TEST | ( | MapHasDescriptorsAndTransitions | ) |
Definition at line 1960 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, map, and NULL.
| TEST | ( | ManyLocalsInSharedContext | ) |
Definition at line 1985 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, HeapGraphNode::GetChildrenCount(), Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kContextVariable, HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, Context::MIN_CONTEXT_SLOTS, NULL, OS::SNPrintF(), and Vector< T >::start().
| TEST | ( | AllocationSitesAreVisible | ) |
Definition at line 2031 of file test-heap-profiler.cc.
References Handle< T >::Cast(), CHECK, CHECK_EQ, CHECK_NE, HeapProfiler::FindObjectById(), HeapGraphNode::GetChild(), HeapGraphNode::GetChildrenCount(), Isolate::GetHeapProfiler(), HeapGraphNode::GetId(), Context::GetIsolate(), HeapGraphNode::GetName(), HeapGraphNode::GetShallowSize(), HeapGraphNode::GetType(), Value::IsArray(), HeapGraphNode::kArray, HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, literals(), name, Integer::New(), NULL, FixedArray::SizeFor(), and HeapProfiler::TakeHeapSnapshot().
| TEST | ( | JSFunctionHasCodeLink | ) |
Definition at line 2088 of file test-heap-profiler.cc.
References CHECK, CHECK_NE, code(), Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, and NULL.
| TEST | ( | CheckCodeNames | ) |
Definition at line 2130 of file test-heap-profiler.cc.
References ARRAY_SIZE, CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphNode::GetName(), and NULL.
| TEST | ( | ArrayGrowLeftTrim | ) |
Definition at line 2232 of file test-heap-profiler.cc.
References ARRAY_SIZE, CHECK_GE, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), NULL, and HeapProfiler::StartTrackingHeapObjects().
| TEST | ( | TrackHeapAllocations | ) |
Definition at line 2263 of file test-heap-profiler.cc.
References ARRAY_SIZE, CHECK_GE, CHECK_NE, Isolate::GetCurrent(), Isolate::GetHeapProfiler(), Context::GetIsolate(), NULL, HeapProfiler::StartTrackingHeapObjects(), and HeapProfiler::StopTrackingHeapObjects().
| TEST | ( | TrackBumpPointerAllocations | ) |
Definition at line 2310 of file test-heap-profiler.cc.
References ARRAY_SIZE, CHECK, CHECK_GE, CHECK_LT, CHECK_NE, Heap::DisableInlineAllocation(), Heap::EnableInlineAllocation(), Isolate::GetCurrent(), Isolate::GetHeapProfiler(), Context::GetIsolate(), CcTest::heap(), NULL, HeapProfiler::StartTrackingHeapObjects(), and HeapProfiler::StopTrackingHeapObjects().
| TEST | ( | TrackV8ApiAllocation | ) |
Definition at line 2368 of file test-heap-profiler.cc.
References ARRAY_SIZE, CHECK_GE, CHECK_NE, Object::Clone(), Isolate::GetCurrent(), Isolate::GetHeapProfiler(), Context::GetIsolate(), Object::New(), NULL, HeapProfiler::StartTrackingHeapObjects(), and HeapProfiler::StopTrackingHeapObjects().
| TEST | ( | ArrayBufferAndArrayBufferView | ) |
Definition at line 2396 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::GetHeapProfiler(), Context::GetIsolate(), HeapGraphNode::GetShallowSize(), HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, HeapGraphEdge::kWeak, and NULL.
| TEST | ( | ArrayBufferSharedBackingStore | ) |
Definition at line 2436 of file test-heap-profiler.cc.
References ASSERT, ArrayBuffer::ByteLength(), CHECK, CHECK_EQ, CHECK_NE, ArrayBuffer::Externalize(), Isolate::GetHeapProfiler(), Context::GetIsolate(), Context::Global(), Value::Int32Value(), ArrayBuffer::IsExternal(), HeapGraphEdge::kInternal, HeapGraphEdge::kProperty, ArrayBuffer::New(), NULL, and HeapProfiler::TakeHeapSnapshot().
| TEST | ( | BoxObject | ) |
Definition at line 2482 of file test-heap-profiler.cc.
References CHECK, CHECK_EQ, CHECK_NE, v8::internal::CStrVector(), Isolate::factory(), Isolate::GetHeapProfiler(), HeapGraphNode::GetName(), Object::GetPrototype(), Context::Global(), CcTest::i_isolate(), CcTest::isolate(), HeapGraphEdge::kElement, HeapGraphEdge::kInternal, NULL, Object::Set(), and HeapProfiler::TakeHeapSnapshot().
| TEST | ( | AddressToTraceMap | ) |
Definition at line 2516 of file test-heap-profiler.cc.
References AddressToTraceMap::AddRange(), CHECK_EQ, AddressToTraceMap::Clear(), AddressToTraceMap::GetTraceNodeId(), map, AddressToTraceMap::size(), and v8::internal::U.