V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::CpuProfile Class Reference

#include <v8-profiler.h>

Public Member Functions

Local< StringGetTitle () const
 
const CpuProfileNodeGetTopDownRoot () const
 
int GetSamplesCount () const
 
const CpuProfileNodeGetSample (int index) const
 
int64_t GetSampleTimestamp (int index) const
 
int64_t GetStartTime () const
 
int64_t GetEndTime () const
 
void Delete ()
 

Detailed Description

CpuProfile contains a CPU profile in a form of top-down call tree (from main() down to functions that do all the work).

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

Member Function Documentation

◆ Delete()

void v8::CpuProfile::Delete ( )

Deletes the profile and removes it from CpuProfiler's list. All pointers to nodes previously returned become invalid.

Definition at line 10067 of file api.cc.

◆ GetEndTime()

int64_t v8::CpuProfile::GetEndTime ( ) const

Returns time when the profile recording was stopped (in microseconds) since some unspecified starting point. The point is equal to the starting point used by GetStartTime.

Definition at line 10108 of file api.cc.

◆ GetSample()

const CpuProfileNode * v8::CpuProfile::GetSample ( int  index) const

Returns profile node corresponding to the top frame the sample at the given index.

Definition at line 10089 of file api.cc.

◆ GetSamplesCount()

int v8::CpuProfile::GetSamplesCount ( ) const

Returns number of samples recorded. The samples are not recorded unless |record_samples| parameter of CpuProfiler::StartCpuProfiling is true.

Definition at line 10114 of file api.cc.

◆ GetSampleTimestamp()

int64_t v8::CpuProfile::GetSampleTimestamp ( int  index) const

Returns the timestamp of the sample. The timestamp is the number of microseconds since some unspecified starting point. The point is equal to the starting point used by GetStartTime.

Definition at line 10095 of file api.cc.

◆ GetStartTime()

int64_t v8::CpuProfile::GetStartTime ( ) const

Returns time when the profile recording was started (in microseconds) since some unspecified starting point.

Definition at line 10102 of file api.cc.

◆ GetTitle()

Local< String > v8::CpuProfile::GetTitle ( ) const

Returns CPU profile title.

Definition at line 10075 of file api.cc.

◆ GetTopDownRoot()

const CpuProfileNode * v8::CpuProfile::GetTopDownRoot ( ) const

Returns the root node of the top down call tree.

Definition at line 10083 of file api.cc.


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