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

#include <v8-metrics.h>

Collaboration diagram for v8::metrics::LongTaskStats:

Static Public Member Functions

static V8_INLINE void Reset (Isolate *isolate)
 
static LongTaskStats Get (Isolate *isolate)
 

Public Attributes

int64_t gc_full_atomic_wall_clock_duration_us = 0
 
int64_t gc_full_incremental_wall_clock_duration_us = 0
 
int64_t gc_young_wall_clock_duration_us = 0
 
int64_t v8_execute_us = 0
 

Detailed Description

Experimental API intended for the LongTasks UKM (crbug.com/1173527). The Reset() method should be called at the start of a potential long task. The Get() method returns durations of V8 work that happened during the task.

This API is experimental and may be removed/changed in the future.

Definition at line 255 of file v8-metrics.h.

Member Function Documentation

◆ Get()

metrics::LongTaskStats v8::metrics::LongTaskStats::Get ( v8::Isolate * v8_isolate)
static

Returns durations of V8 work that happened since the last Reset().

Definition at line 7342 of file api.cc.

Here is the call graph for this function:

◆ Reset()

static V8_INLINE void v8::metrics::LongTaskStats::Reset ( Isolate * isolate)
inlinestatic

Resets durations of V8 work for the new task.

Definition at line 259 of file v8-metrics.h.

Here is the call graph for this function:

Member Data Documentation

◆ gc_full_atomic_wall_clock_duration_us

int64_t v8::metrics::LongTaskStats::gc_full_atomic_wall_clock_duration_us = 0

Definition at line 268 of file v8-metrics.h.

◆ gc_full_incremental_wall_clock_duration_us

int64_t v8::metrics::LongTaskStats::gc_full_incremental_wall_clock_duration_us = 0

Definition at line 269 of file v8-metrics.h.

◆ gc_young_wall_clock_duration_us

int64_t v8::metrics::LongTaskStats::gc_young_wall_clock_duration_us = 0

Definition at line 270 of file v8-metrics.h.

◆ v8_execute_us

int64_t v8::metrics::LongTaskStats::v8_execute_us = 0

Definition at line 272 of file v8-metrics.h.


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