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

#include <v8-cppgc.h>

Collaboration diagram for v8::CustomSpaceStatisticsReceiver:

Public Member Functions

virtual ~CustomSpaceStatisticsReceiver ()=default
 
virtual void AllocatedBytes (cppgc::CustomSpaceIndex space_index, size_t bytes)=0
 

Detailed Description

Provided as input to CppHeap::CollectCustomSpaceStatisticsAtLastGC().

Its method is invoked with the results of the statistic collection.

Definition at line 161 of file v8-cppgc.h.

Constructor & Destructor Documentation

◆ ~CustomSpaceStatisticsReceiver()

virtual v8::CustomSpaceStatisticsReceiver::~CustomSpaceStatisticsReceiver ( )
virtualdefault

Member Function Documentation

◆ AllocatedBytes()

virtual void v8::CustomSpaceStatisticsReceiver::AllocatedBytes ( cppgc::CustomSpaceIndex space_index,
size_t bytes )
pure virtual

Reports the size of a space at the last GC. It is called for each space that was requested in CollectCustomSpaceStatisticsAtLastGC().

Parameters
space_indexThe index of the space.
bytesThe total size of live objects in the space at the last GC. It is zero if there was no GC yet.

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