v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-heap-profiler.cc File Reference
#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"
Include dependency graph for test-heap-profiler.cc:

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)
 

Macro Definition Documentation

#define CHECK_EQ_SNAPSHOT_OBJECT_ID (   a,
 
)    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,
 
)    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().

Function Documentation

TEST ( HeapSnapshot  )
TEST ( HeapSnapshotRootPreservedAfterSorting  )
TEST ( HeapSnapshotJSONSerializationAborting  )
TEST ( HeapSnapshotGetNodeById  )
TEST ( HeapSnapshotUnknownSnapshotObjectId  )
TEST ( TakeHeapSnapshotAborting  )
TEST ( DeleteAllHeapSnapshots  )
TEST ( GlobalObjectName  )
TEST ( GlobalObjectFields  )
TEST ( GetHeapValueForDeletedObject  )
TEST ( FastCaseAccessors  )
TEST ( SlowCaseAccessors  )
TEST ( NoRefsToNonEssentialEntries  )
TEST ( MapHasDescriptorsAndTransitions  )
TEST ( CheckCodeNames  )