Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Friends | List of all members
v8::CpuProfilingOptions Class Reference

#include <v8-profiler.h>

Public Member Functions

 CpuProfilingOptions (CpuProfilingMode mode=kLeafNodeLineNumbers, unsigned max_samples=kNoSampleLimit, int sampling_interval_us=0, MaybeLocal< Context > filter_context=MaybeLocal< Context >())
 
 CpuProfilingOptions (CpuProfilingOptions &&)=default
 
CpuProfilingOptionsoperator= (CpuProfilingOptions &&)=default
 
CpuProfilingMode mode () const
 
unsigned max_samples () const
 
int sampling_interval_us () const
 

Static Public Attributes

static const unsigned kNoSampleLimit = UINT_MAX
 

Friends

class internal::CpuProfile
 

Detailed Description

Optional profiling attributes.

Constructor & Destructor Documentation

◆ CpuProfilingOptions() [1/2]

v8::CpuProfilingOptions::CpuProfilingOptions ( CpuProfilingMode  mode = kLeafNodeLineNumbers,
unsigned  max_samples = kNoSampleLimit,
int  sampling_interval_us = 0,
MaybeLocal< Context filter_context = MaybeLocalContext >() 
)
Parameters
modeType of computation of stack frame line numbers.
max_samplesThe maximum number of samples that should be recorded by the profiler. Samples obtained after this limit will be discarded.
sampling_interval_uscontrols the profile-specific target sampling interval. The provided sampling interval will be snapped to the next lowest non-zero multiple of the profiler's sampling interval, set via SetSamplingInterval(). If zero, the sampling interval will be equal to the profiler's sampling interval.
filter_contextIf specified, profiles will only contain frames using this context. Other frames will be elided.

◆ CpuProfilingOptions() [2/2]

v8::CpuProfilingOptions::CpuProfilingOptions ( CpuProfilingOptions &&  )
default

Member Function Documentation

◆ max_samples()

unsigned v8::CpuProfilingOptions::max_samples ( ) const
inline

◆ mode()

CpuProfilingMode v8::CpuProfilingOptions::mode ( ) const
inline

◆ operator=()

CpuProfilingOptions & v8::CpuProfilingOptions::operator= ( CpuProfilingOptions &&  )
default

◆ sampling_interval_us()

int v8::CpuProfilingOptions::sampling_interval_us ( ) const
inline

Friends And Related Function Documentation

◆ internal::CpuProfile

friend class internal::CpuProfile
friend

Member Data Documentation

◆ kNoSampleLimit

const unsigned v8::CpuProfilingOptions::kNoSampleLimit = UINT_MAX
static

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