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

#include <v8-metrics.h>

Collaboration diagram for v8::metrics::Recorder:

Classes

class  ContextId
 

Public Member Functions

virtual ~Recorder ()=default
 
virtual void NotifyIsolateDisposal ()
 

Static Public Member Functions

static MaybeLocal< ContextGetContext (Isolate *isolate, ContextId id)
 
static ContextId GetContextId (Local< Context > context)
 

Detailed Description

This class serves as a base class for recording event-based metrics in V8. There a two kinds of metrics, those which are expected to be thread-safe and whose implementation is required to fulfill this requirement and those whose implementation does not have that requirement and only needs to be executable on the main thread. If such an event is triggered from a background thread, it will be delayed and executed by the foreground task runner.

The embedder is expected to call v8::Isolate::SetMetricsRecorder() providing its implementation and have the virtual methods overwritten for the events it cares about.

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

Constructor & Destructor Documentation

◆ ~Recorder()

virtual v8::metrics::Recorder::~Recorder ( )
virtualdefault

Member Function Documentation

◆ GetContext()

MaybeLocal< Context > v8::metrics::Recorder::GetContext ( Isolate * isolate,
ContextId id )
static

Definition at line 7328 of file api.cc.

Here is the call graph for this function:

◆ GetContextId()

metrics::Recorder::ContextId v8::metrics::Recorder::GetContextId ( Local< Context > context)
static

Definition at line 7334 of file api.cc.

Here is the call graph for this function:

◆ NotifyIsolateDisposal()

virtual void v8::metrics::Recorder::NotifyIsolateDisposal ( )
inlinevirtual

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

Here is the caller graph for this function:

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