v8  7.0.276 (node 11.14.0)
V8 is Google's open source JavaScript engine
AllocationProfile::Node Struct Reference

#include <v8-profiler.h>

Collaboration diagram for AllocationProfile::Node:

Data Fields

Local< Stringname
 
Local< Stringscript_name
 
int script_id
 
int start_position
 
int line_number
 
int column_number
 
std::vector< Node * > children
 
std::vector< Allocationallocations
 

Detailed Description

Represents a node in the call-graph.

Definition at line 572 of file v8-profiler.h.

Field Documentation

◆ allocations

std::vector<Allocation> allocations

List of self allocations done by this node in the call-graph.

Definition at line 618 of file v8-profiler.h.

◆ children

std::vector<Node*> children

List of callees called from this node for which we have sampled allocations. The lifetime of the children is scoped to the containing AllocationProfile.

Definition at line 613 of file v8-profiler.h.

◆ column_number

int column_number

1-indexed column number where the function starts. May be kNoColumnNumberInfo if no line number information is available.

Definition at line 606 of file v8-profiler.h.

◆ line_number

int line_number

1-indexed line number where the function starts. May be kNoLineNumberInfo if no line number information is available.

Definition at line 600 of file v8-profiler.h.

◆ name

Local<String> name

Name of the function. May be empty for anonymous functions or if the script corresponding to this function has been unloaded.

Definition at line 577 of file v8-profiler.h.

◆ script_id

int script_id

id of the script where the function is located. May be equal to v8::UnboundScript::kNoScriptId in cases where the script doesn't exist.

Definition at line 589 of file v8-profiler.h.

◆ script_name

Local<String> script_name

Name of the script containing the function. May be empty if the script name is not available, or if the script has been unloaded.

Definition at line 583 of file v8-profiler.h.

◆ start_position

int start_position

Start position of the function in the script.

Definition at line 594 of file v8-profiler.h.


The documentation for this struct was generated from the following file: