![]() |
v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
|
#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 | |
CpuProfilingOptions & | operator= (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 |
Optional profiling attributes.
Definition at line 358 of file v8-profiler.h.
CpuProfilingOptions | ( | CpuProfilingMode | mode = kLeafNodeLineNumbers, |
unsigned | max_samples = kNoSampleLimit, | ||
int | sampling_interval_us = 0, | ||
MaybeLocal< Context > | filter_context = MaybeLocal< Context >() ) |
mode | Type of computation of stack frame line numbers. |
max_samples | The maximum number of samples that should be recorded by the profiler. Samples obtained after this limit will be discarded. |
sampling_interval_us | controls 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_context | If specified, profiles will only contain frames using this context. Other frames will be elided. |
References v8::kLeafNodeLineNumbers, kNoSampleLimit, max_samples(), mode(), and sampling_interval_us().
Referenced by CpuProfilingOptions(), and operator=().
|
default |
References CpuProfilingOptions().
|
inline |
Definition at line 387 of file v8-profiler.h.
Referenced by CpuProfilingOptions().
|
inline |
Definition at line 386 of file v8-profiler.h.
Referenced by CpuProfilingOptions().
|
default |
References CpuProfilingOptions().
|
inline |
Definition at line 388 of file v8-profiler.h.
Referenced by CpuProfilingOptions().
|
friend |
Definition at line 391 of file v8-profiler.h.
|
static |
Definition at line 361 of file v8-profiler.h.
Referenced by CpuProfilingOptions(), CpuProfiler::Start(), and CpuProfiler::StartProfiling().