v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::HeapSnapshotJSONSerializer Class Reference

#include <heap-snapshot-generator.h>

Collaboration diagram for v8::internal::HeapSnapshotJSONSerializer:

Public Member Functions

 HeapSnapshotJSONSerializer (HeapSnapshot *snapshot)
 
 HeapSnapshotJSONSerializer (const HeapSnapshotJSONSerializer &)=delete
 
HeapSnapshotJSONSerializeroperator= (const HeapSnapshotJSONSerializer &)=delete
 
void Serialize (v8::OutputStream *stream)
 

Private Member Functions

int GetStringId (const char *s)
 
V8_INLINE int to_node_index (const HeapEntry *e)
 
V8_INLINE int to_node_index (int entry_index)
 
void SerializeEdge (HeapGraphEdge *edge, bool first_edge)
 
void SerializeEdges ()
 
void SerializeImpl ()
 
void SerializeNode (const HeapEntry *entry)
 
void SerializeNodes ()
 
void SerializeSnapshot ()
 
void SerializeTraceTree ()
 
void SerializeTraceNode (AllocationTraceNode *node)
 
void SerializeTraceNodeInfos ()
 
void SerializeSamples ()
 
void SerializeString (const unsigned char *s)
 
void SerializeStrings ()
 
void SerializeLocation (const EntrySourceLocation &location)
 
void SerializeLocations ()
 

Static Private Member Functions

static V8_INLINE bool StringsMatch (void *key1, void *key2)
 
static V8_INLINE uint32_t StringHash (const void *string)
 

Private Attributes

HeapSnapshotsnapshot_
 
base::CustomMatcherHashMap strings_
 
int next_node_id_
 
int next_string_id_
 
OutputStreamWriterwriter_
 
uint32_t trace_function_count_ = 0
 

Static Private Attributes

static const int kEdgeFieldsCount
 
static const int kNodeFieldsCountWithTraceNodeId = 7
 
static const int kNodeFieldsCountWithoutTraceNodeId = 6
 

Friends

class HeapSnapshotJSONSerializerEnumerator
 
class HeapSnapshotJSONSerializerIterator
 

Detailed Description

Definition at line 736 of file heap-snapshot-generator.h.

Constructor & Destructor Documentation

◆ HeapSnapshotJSONSerializer() [1/2]

v8::internal::HeapSnapshotJSONSerializer::HeapSnapshotJSONSerializer ( HeapSnapshot * snapshot)
inlineexplicit

Definition at line 738 of file heap-snapshot-generator.h.

◆ HeapSnapshotJSONSerializer() [2/2]

v8::internal::HeapSnapshotJSONSerializer::HeapSnapshotJSONSerializer ( const HeapSnapshotJSONSerializer & )
delete

Member Function Documentation

◆ GetStringId()

int v8::internal::HeapSnapshotJSONSerializer::GetStringId ( const char * s)
private

Definition at line 3410 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

HeapSnapshotJSONSerializer & v8::internal::HeapSnapshotJSONSerializer::operator= ( const HeapSnapshotJSONSerializer & )
delete

◆ Serialize()

void v8::internal::HeapSnapshotJSONSerializer::Serialize ( v8::OutputStream * stream)

Definition at line 3345 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeEdge()

void v8::internal::HeapSnapshotJSONSerializer::SerializeEdge ( HeapGraphEdge * edge,
bool first_edge )
private

Definition at line 3419 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeEdges()

void v8::internal::HeapSnapshotJSONSerializer::SerializeEdges ( )
private

Definition at line 3435 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeImpl()

void v8::internal::HeapSnapshotJSONSerializer::SerializeImpl ( )
private

Definition at line 3367 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeLocation()

void v8::internal::HeapSnapshotJSONSerializer::SerializeLocation ( const EntrySourceLocation & location)
private

Definition at line 3709 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeLocations()

void v8::internal::HeapSnapshotJSONSerializer::SerializeLocations ( )
private

Definition at line 3720 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeNode()

void v8::internal::HeapSnapshotJSONSerializer::SerializeNode ( const HeapEntry * entry)
private

Definition at line 3445 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeNodes()

void v8::internal::HeapSnapshotJSONSerializer::SerializeNodes ( )
private

Definition at line 3468 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeSamples()

void v8::internal::HeapSnapshotJSONSerializer::SerializeSamples ( )
private

Definition at line 3627 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeSnapshot()

void v8::internal::HeapSnapshotJSONSerializer::SerializeSnapshot ( )
private

Definition at line 3476 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeString()

void v8::internal::HeapSnapshotJSONSerializer::SerializeString ( const unsigned char * s)
private

Definition at line 3644 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeStrings()

void v8::internal::HeapSnapshotJSONSerializer::SerializeStrings ( )
private

Definition at line 3693 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeTraceNode()

void v8::internal::HeapSnapshotJSONSerializer::SerializeTraceNode ( AllocationTraceNode * node)
private

Definition at line 3584 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeTraceNodeInfos()

void v8::internal::HeapSnapshotJSONSerializer::SerializeTraceNodeInfos ( )
private

Definition at line 3604 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeTraceTree()

void v8::internal::HeapSnapshotJSONSerializer::SerializeTraceTree ( )
private

Definition at line 3577 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StringHash()

uint32_t v8::internal::HeapSnapshotJSONSerializer::StringHash ( const void * string)
staticprivate

Definition at line 56 of file heap-snapshot-generator-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StringsMatch()

static V8_INLINE bool v8::internal::HeapSnapshotJSONSerializer::StringsMatch ( void * key1,
void * key2 )
inlinestaticprivate

Definition at line 750 of file heap-snapshot-generator.h.

◆ to_node_index() [1/2]

int v8::internal::HeapSnapshotJSONSerializer::to_node_index ( const HeapEntry * e)
private

Definition at line 63 of file heap-snapshot-generator-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_node_index() [2/2]

int v8::internal::HeapSnapshotJSONSerializer::to_node_index ( int entry_index)
private

Definition at line 67 of file heap-snapshot-generator-inl.h.

Friends And Related Symbol Documentation

◆ HeapSnapshotJSONSerializerEnumerator

friend class HeapSnapshotJSONSerializerEnumerator
friend

Definition at line 786 of file heap-snapshot-generator.h.

◆ HeapSnapshotJSONSerializerIterator

friend class HeapSnapshotJSONSerializerIterator
friend

Definition at line 787 of file heap-snapshot-generator.h.

Member Data Documentation

◆ kEdgeFieldsCount

const int v8::internal::HeapSnapshotJSONSerializer::kEdgeFieldsCount
staticprivate

Definition at line 775 of file heap-snapshot-generator.h.

◆ kNodeFieldsCountWithoutTraceNodeId

const int v8::internal::HeapSnapshotJSONSerializer::kNodeFieldsCountWithoutTraceNodeId = 6
staticprivate

Definition at line 777 of file heap-snapshot-generator.h.

◆ kNodeFieldsCountWithTraceNodeId

const int v8::internal::HeapSnapshotJSONSerializer::kNodeFieldsCountWithTraceNodeId = 7
staticprivate

Definition at line 776 of file heap-snapshot-generator.h.

◆ next_node_id_

int v8::internal::HeapSnapshotJSONSerializer::next_node_id_
private

Definition at line 781 of file heap-snapshot-generator.h.

◆ next_string_id_

int v8::internal::HeapSnapshotJSONSerializer::next_string_id_
private

Definition at line 782 of file heap-snapshot-generator.h.

◆ snapshot_

HeapSnapshot* v8::internal::HeapSnapshotJSONSerializer::snapshot_
private

Definition at line 779 of file heap-snapshot-generator.h.

◆ strings_

base::CustomMatcherHashMap v8::internal::HeapSnapshotJSONSerializer::strings_
private

Definition at line 780 of file heap-snapshot-generator.h.

◆ trace_function_count_

uint32_t v8::internal::HeapSnapshotJSONSerializer::trace_function_count_ = 0
private

Definition at line 784 of file heap-snapshot-generator.h.

◆ writer_

OutputStreamWriter* v8::internal::HeapSnapshotJSONSerializer::writer_
private

Definition at line 783 of file heap-snapshot-generator.h.


The documentation for this class was generated from the following files: