v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::CpuProfilingOptions Class Reference

#include <v8-profiler.h>

Collaboration diagram for v8::CpuProfilingOptions:

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
 

Private Member Functions

bool has_filter_context () const
 
void * raw_filter_context () const
 

Private Attributes

CpuProfilingMode mode_
 
unsigned max_samples_
 
int sampling_interval_us_
 
Global< Contextfilter_context_
 

Friends

class internal::CpuProfile
 

Detailed Description

Optional profiling attributes.

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

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 = MaybeLocal<Context>() )
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.

Definition at line 11398 of file api.cc.

Here is the call graph for this function:

◆ CpuProfilingOptions() [2/2]

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

Member Function Documentation

◆ has_filter_context()

bool v8::CpuProfilingOptions::has_filter_context ( ) const
inlineprivate

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

◆ max_samples()

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

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

◆ mode()

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

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

◆ operator=()

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

◆ raw_filter_context()

void * v8::CpuProfilingOptions::raw_filter_context ( ) const
private

Definition at line 11413 of file api.cc.

Here is the call graph for this function:

◆ sampling_interval_us()

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

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

Friends And Related Symbol Documentation

◆ internal::CpuProfile

friend class internal::CpuProfile
friend

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

Member Data Documentation

◆ filter_context_

Global<Context> v8::CpuProfilingOptions::filter_context_
private

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

◆ kNoSampleLimit

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

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

◆ max_samples_

unsigned v8::CpuProfilingOptions::max_samples_
private

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

◆ mode_

CpuProfilingMode v8::CpuProfilingOptions::mode_
private

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

◆ sampling_interval_us_

int v8::CpuProfilingOptions::sampling_interval_us_
private

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


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