v8
8.1.307(node14.1.0)
V8 is Google's open source JavaScript engine
|
#include <v8-profiler.h>
Data Structures | |
struct | LineTick |
Public Types | |
enum | SourceType { kScript = 0, kBuiltin = 1, kCallback = 2, kInternal = 3, kUnresolved = 4 } |
Public Member Functions | |
Local< String > | GetFunctionName () const |
const char * | GetFunctionNameStr () const |
int | GetScriptId () const |
Local< String > | GetScriptResourceName () const |
const char * | GetScriptResourceNameStr () const |
bool | IsScriptSharedCrossOrigin () const |
int | GetLineNumber () const |
int | GetColumnNumber () const |
unsigned int | GetHitLineCount () const |
bool | GetLineTicks (LineTick *entries, unsigned int length) const |
const char * | GetBailoutReason () const |
unsigned | GetHitCount () const |
unsigned | GetNodeId () const |
SourceType | GetSourceType () const |
int | GetChildrenCount () const |
const CpuProfileNode * | GetChild (int index) const |
const CpuProfileNode * | GetParent () const |
const std::vector< CpuProfileDeoptInfo > & | GetDeoptInfos () const |
Static Public Attributes | |
static const int | kNoLineNumberInfo = Message::kNoLineNumberInfo |
static const int | kNoColumnNumberInfo = Message::kNoColumnInfo |
CpuProfileNode represents a node in a call graph.
Definition at line 60 of file v8-profiler.h.
enum SourceType |
Enumerator | |
---|---|
kScript | |
kBuiltin | |
kCallback | |
kInternal | |
kUnresolved |
Definition at line 71 of file v8-profiler.h.
const char* GetBailoutReason | ( | ) | const |
Returns bailout reason for the function if the optimization was disabled for it.
const CpuProfileNode* GetChild | ( | int | index | ) | const |
Retrieves a child node by index.
int GetChildrenCount | ( | ) | const |
Returns child nodes count of the node.
int GetColumnNumber | ( | ) | const |
Returns 1-based number of the column where the function originates. kNoColumnNumberInfo if no column number information is available.
const std::vector<CpuProfileDeoptInfo>& GetDeoptInfos | ( | ) | const |
Retrieves deopt infos for the node.
Returns function name (empty string for anonymous functions.)
const char* GetFunctionNameStr | ( | ) | const |
Returns function name (empty string for anonymous functions.) The string ownership is not passed to the caller. It stays valid until profile is deleted. The function is thread safe.
unsigned GetHitCount | ( | ) | const |
Returns the count of samples where the function was currently executing.
unsigned int GetHitLineCount | ( | ) | const |
Returns the number of the function's source lines that collect the samples.
int GetLineNumber | ( | ) | const |
Returns the number, 1-based, of the line where the function originates. kNoLineNumberInfo if no line number information is available.
bool GetLineTicks | ( | LineTick * | entries, |
unsigned int | length | ||
) | const |
Returns the set of source lines that collect the samples. The caller allocates buffer and responsible for releasing it. True if all available entries are copied, otherwise false. The function copies nothing if buffer is not large enough.
unsigned GetNodeId | ( | ) | const |
Returns id of the node. The id is unique within the tree
const CpuProfileNode* GetParent | ( | ) | const |
Retrieves the ancestor node, or null if the root.
int GetScriptId | ( | ) | const |
Returns id of the script where function is located.
Returns resource name for script from where the function originates.
const char* GetScriptResourceNameStr | ( | ) | const |
Returns resource name for script from where the function originates. The string ownership is not passed to the caller. It stays valid until profile is deleted. The function is thread safe.
SourceType GetSourceType | ( | ) | const |
Gets the type of the source which the node was captured from.
bool IsScriptSharedCrossOrigin | ( | ) | const |
Return true if the script from where the function originates is flagged as being shared cross-origin.
|
static |
Definition at line 168 of file v8-profiler.h.
|
static |
Definition at line 167 of file v8-profiler.h.