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
CodeEntry Class Reference

#include <profile-generator.h>

Public Member Functions

 CodeEntry (Logger::LogEventsAndTags tag, const char *name, const char *name_prefix=CodeEntry::kEmptyNamePrefix, const char *resource_name=CodeEntry::kEmptyResourceName, int line_number=v8::CpuProfileNode::kNoLineNumberInfo, int column_number=v8::CpuProfileNode::kNoColumnNumberInfo)
 
 ~CodeEntry ()
 
bool is_js_function () const
 
const char * name_prefix () const
 
bool has_name_prefix () const
 
const char * name () const
 
const char * resource_name () const
 
int line_number () const
 
int column_number () const
 
void set_shared_id (int shared_id)
 
int script_id () const
 
void set_script_id (int script_id)
 
void set_bailout_reason (const char *bailout_reason)
 
const char * bailout_reason () const
 
List< OffsetRange > * no_frame_ranges () const
 
void set_no_frame_ranges (List< OffsetRange > *ranges)
 
void SetBuiltinId (Builtins::Name id)
 
Builtins::Name builtin_id () const
 
uint32_t GetCallUid () const
 
bool IsSameAs (CodeEntry *entry) const
 

Static Public Member Functions

static bool is_js_function_tag (Logger::LogEventsAndTags tag)
 

Static Public Attributes

static const char *const kEmptyNamePrefix = ""
 
static const char *const kEmptyResourceName = ""
 
static const char *const kEmptyBailoutReason = ""
 

Detailed Description

Definition at line 71 of file profile-generator.h.

Constructor & Destructor Documentation

CodeEntry ( Logger::LogEventsAndTags  tag,
const char *  name,
const char *  name_prefix = CodeEntry::kEmptyNamePrefix,
const char *  resource_name = CodeEntry::kEmptyResourceName,
int  line_number = v8::CpuProfileNode::kNoLineNumberInfo,
int  column_number = v8::CpuProfileNode::kNoColumnNumberInfo 
)
inline

Definition at line 36 of file profile-generator-inl.h.

~CodeEntry ( )

Definition at line 168 of file profile-generator.cc.

Member Function Documentation

const char* bailout_reason ( ) const
inline
Builtins::Name builtin_id ( ) const
inline

Definition at line 105 of file profile-generator.h.

Referenced by ProfileGenerator::RecordTickSample().

int column_number ( ) const
inline

Definition at line 88 of file profile-generator.h.

uint32_t GetCallUid ( ) const

Definition at line 173 of file profile-generator.cc.

References v8::internal::ComputeIntegerHash().

bool has_name_prefix ( ) const
inline

Definition at line 84 of file profile-generator.h.

Referenced by CpuProfileNode::GetFunctionName().

bool is_js_function ( ) const
inline

Definition at line 82 of file profile-generator.h.

References CodeEntry::is_js_function_tag().

bool is_js_function_tag ( Logger::LogEventsAndTags  tag)
inlinestatic

Definition at line 55 of file profile-generator-inl.h.

Referenced by CodeEntry::is_js_function().

bool IsSameAs ( CodeEntry entry) const

Definition at line 194 of file profile-generator.cc.

int line_number ( ) const
inline

Definition at line 87 of file profile-generator.h.

Referenced by ProfileNode::Print().

const char* name ( ) const
inline

Definition at line 85 of file profile-generator.h.

Referenced by CpuProfileNode::GetFunctionName(), and ProfileNode::Print().

const char* name_prefix ( ) const
inline

Definition at line 83 of file profile-generator.h.

Referenced by CpuProfileNode::GetFunctionName(), and ProfileNode::Print().

List<OffsetRange>* no_frame_ranges ( ) const
inline

Definition at line 99 of file profile-generator.h.

Referenced by ProfileGenerator::RecordTickSample().

const char* resource_name ( ) const
inline
int script_id ( ) const
inline
void set_bailout_reason ( const char *  bailout_reason)
inline

Definition at line 92 of file profile-generator.h.

References CodeEntry::bailout_reason().

Referenced by CpuProfiler::CodeCreateEvent().

void set_no_frame_ranges ( List< OffsetRange > *  ranges)
inline

Definition at line 100 of file profile-generator.h.

Referenced by CpuProfiler::CodeCreateEvent().

void set_script_id ( int  script_id)
inline

Definition at line 91 of file profile-generator.h.

References CodeEntry::script_id().

Referenced by CpuProfiler::CodeCreateEvent().

void set_shared_id ( int  shared_id)
inline

Definition at line 89 of file profile-generator.h.

void SetBuiltinId ( Builtins::Name  id)

Definition at line 206 of file profile-generator.cc.

Field Documentation

const char *const kEmptyBailoutReason = ""
static

Definition at line 112 of file profile-generator.h.

const char *const kEmptyNamePrefix = ""
static

Definition at line 110 of file profile-generator.h.

Referenced by CpuProfiler::CodeCreateEvent().

const char *const kEmptyResourceName = ""
static

Definition at line 111 of file profile-generator.h.


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