v8  3.14.5(node0.10.28)
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 "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
 

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 (HeapSnapshotInternalReferences)
 
 TEST (HeapEntryIdsAndArrayShift)
 
 TEST (HeapEntryIdsAndGC)
 
 TEST (HeapSnapshotRootPreservedAfterSorting)
 
 TEST (HeapSnapshotJSONSerialization)
 
 TEST (HeapSnapshotJSONSerializationAborting)
 
 TEST (HeapSnapshotObjectsStats)
 
 TEST (HeapSnapshotGetNodeById)
 
 TEST (HeapSnapshotGetSnapshotObjectId)
 
 TEST (HeapSnapshotUnknownSnapshotObjectId)
 
 TEST (TakeHeapSnapshotAborting)
 
 TEST (HeapSnapshotRetainedObjectInfo)
 
 TEST (HeapSnapshotImplicitReferences)
 
 TEST (DeleteAllHeapSnapshots)
 
 TEST (DeleteHeapSnapshot)
 
 TEST (DocumentURL)
 
 TEST (DocumentWithException)
 
 TEST (DocumentURLWithException)
 
 TEST (NoHandleLeaks)
 
 TEST (NodesIteration)
 
 TEST (GetHeapValue)
 
 TEST (GetHeapValueForDeletedObject)
 
 TEST (GetConstructorName)
 
 TEST (FastCaseGetter)
 
 TEST (HiddenPropertiesFastCase)
 
bool HasWeakEdge (const v8::HeapGraphNode *node)
 
bool HasWeakGlobalHandle ()
 
 TEST (WeakGlobalHandle)
 
 TEST (WeakNativeContextRefs)
 
 TEST (SfiAndJsFunctionWeakRefs)
 
 TEST (PersistentHandleCount)
 
 TEST (AllStrongGcRootsHaveNames)
 
 TEST (NoRefsToNonEssentialEntries)
 
 TEST (MapHasDescriptorsAndTransitions)
 

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 358 of file test-heap-profiler.cc.

Referenced by TEST().

#define CHECK_NE_SNAPSHOT_OBJECT_ID (   a,
 
)    CHECK((a) != (b))

Definition at line 360 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

bool HasWeakGlobalHandle ( )
TEST ( HeapSnapshot  )
TEST ( HeapSnapshotObjectSizes  )
TEST ( HeapSnapshotSlicedString  )
TEST ( HeapSnapshotRootPreservedAfterSorting  )
TEST ( HeapSnapshotJSONSerializationAborting  )
TEST ( HeapSnapshotGetNodeById  )
TEST ( HeapSnapshotUnknownSnapshotObjectId  )
TEST ( TakeHeapSnapshotAborting  )
TEST ( DocumentURL  )

Definition at line 1231 of file test-heap-profiler.cc.

References CHECK_EQ, CHECK_NE, NULL, and HeapProfiler::TakeSnapshot().

TEST ( DocumentWithException  )

Definition at line 1247 of file test-heap-profiler.cc.

References CHECK_EQ, CHECK_NE, NULL, and HeapProfiler::TakeSnapshot().

TEST ( DocumentURLWithException  )

Definition at line 1263 of file test-heap-profiler.cc.

References CHECK_EQ, CHECK_NE, NULL, and HeapProfiler::TakeSnapshot().

TEST ( NoHandleLeaks  )
TEST ( NodesIteration  )
TEST ( GetConstructorName  )
TEST ( FastCaseGetter  )
TEST ( WeakGlobalHandle  )
TEST ( SfiAndJsFunctionWeakRefs  )
TEST ( PersistentHandleCount  )
TEST ( NoRefsToNonEssentialEntries  )
TEST ( MapHasDescriptorsAndTransitions  )