#include <v8-metrics.h>
Classes | |
class | ContextId |
Public Member Functions | |
virtual | ~Recorder ()=default |
virtual void | AddMainThreadEvent (const GarbageCollectionFullCycle &, ContextId) |
virtual void | AddMainThreadEvent (const GarbageCollectionFullMainThreadIncrementalMark &, ContextId) |
virtual void | AddMainThreadEvent (const GarbageCollectionFullMainThreadBatchedIncrementalMark &, ContextId) |
virtual void | AddMainThreadEvent (const GarbageCollectionFullMainThreadIncrementalSweep &, ContextId) |
virtual void | AddMainThreadEvent (const GarbageCollectionFullMainThreadBatchedIncrementalSweep &, ContextId) |
virtual void | AddMainThreadEvent (const GarbageCollectionYoungCycle &, ContextId) |
virtual void | AddMainThreadEvent (const WasmModuleDecoded &, ContextId) |
virtual void | AddMainThreadEvent (const WasmModuleCompiled &, ContextId) |
virtual void | AddMainThreadEvent (const WasmModuleInstantiated &, ContextId) |
virtual void | AddThreadSafeEvent (const WasmModulesPerIsolate &) |
virtual void | NotifyIsolateDisposal () |
Static Public Member Functions | |
static MaybeLocal< Context > | GetContext (Isolate *isolate, ContextId id) |
static ContextId | GetContextId (Local< Context > context) |
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.
|
virtualdefault |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |
|
inlinevirtual |