v8  9.4.146 (node 16.15.0)
V8 is Google's open source JavaScript engine
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 >())
CpuProfilingMode mode () const
unsigned max_samples () const
int sampling_interval_us () const

Static Public Attributes

static const unsigned kNoSampleLimit = UINT_MAX


class internal::CpuProfile

Detailed Description

Optional profiling attributes.

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

Constructor & Destructor Documentation

◆ CpuProfilingOptions()

CpuProfilingOptions ( CpuProfilingMode  mode = kLeafNodeLineNumbers,
unsigned  max_samples = kNoSampleLimit,
int  sampling_interval_us = 0,
MaybeLocal< Context filter_context = MaybeLocalContext >() 
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.

Member Function Documentation

◆ max_samples()

unsigned max_samples ( ) const

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

◆ mode()

CpuProfilingMode mode ( ) const

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

◆ sampling_interval_us()

int sampling_interval_us ( ) const

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

Friends And Related Function Documentation

◆ internal::CpuProfile

friend class internal::CpuProfile

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

Field Documentation

◆ kNoSampleLimit

const unsigned kNoSampleLimit = UINT_MAX

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

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