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

#include <allocation-stats.h>

Collaboration diagram for v8::internal::AllocationStats:

Public Member Functions

 AllocationStats ()
 
AllocationStatsoperator= (const AllocationStats &stats) V8_NOEXCEPT
 
void Clear ()
 
void ClearSize ()
 
size_t Capacity () const
 
size_t MaxCapacity () const
 
size_t Size () const
 
void IncreaseAllocatedBytes (size_t bytes, const MemoryChunkMetadata *page)
 
void DecreaseAllocatedBytes (size_t bytes, const MemoryChunkMetadata *page)
 
void DecreaseCapacity (size_t bytes)
 
void IncreaseCapacity (size_t bytes)
 

Private Attributes

std::atomic< size_tcapacity_
 
size_t max_capacity_
 
std::atomic< size_tsize_
 

Detailed Description

Definition at line 24 of file allocation-stats.h.

Constructor & Destructor Documentation

◆ AllocationStats()

v8::internal::AllocationStats::AllocationStats ( )
inline

Definition at line 26 of file allocation-stats.h.

Here is the call graph for this function:

Member Function Documentation

◆ Capacity()

size_t v8::internal::AllocationStats::Capacity ( ) const
inline

Definition at line 53 of file allocation-stats.h.

◆ Clear()

void v8::internal::AllocationStats::Clear ( )
inline

Definition at line 39 of file allocation-stats.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearSize()

void v8::internal::AllocationStats::ClearSize ( )
inline

Definition at line 45 of file allocation-stats.h.

Here is the caller graph for this function:

◆ DecreaseAllocatedBytes()

void v8::internal::AllocationStats::DecreaseAllocatedBytes ( size_t bytes,
const MemoryChunkMetadata * page )
inline

Definition at line 75 of file allocation-stats.h.

◆ DecreaseCapacity()

void v8::internal::AllocationStats::DecreaseCapacity ( size_t bytes)
inline

Definition at line 84 of file allocation-stats.h.

Here is the caller graph for this function:

◆ IncreaseAllocatedBytes()

void v8::internal::AllocationStats::IncreaseAllocatedBytes ( size_t bytes,
const MemoryChunkMetadata * page )
inline

Definition at line 62 of file allocation-stats.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IncreaseCapacity()

void v8::internal::AllocationStats::IncreaseCapacity ( size_t bytes)
inline

Definition at line 90 of file allocation-stats.h.

Here is the caller graph for this function:

◆ MaxCapacity()

size_t v8::internal::AllocationStats::MaxCapacity ( ) const
inline

Definition at line 54 of file allocation-stats.h.

◆ operator=()

AllocationStats & v8::internal::AllocationStats::operator= ( const AllocationStats & stats)
inline

Definition at line 28 of file allocation-stats.h.

◆ Size()

size_t v8::internal::AllocationStats::Size ( ) const
inline

Definition at line 55 of file allocation-stats.h.

Here is the caller graph for this function:

Member Data Documentation

◆ capacity_

std::atomic<size_t> v8::internal::AllocationStats::capacity_
private

Definition at line 103 of file allocation-stats.h.

◆ max_capacity_

size_t v8::internal::AllocationStats::max_capacity_
private

Definition at line 106 of file allocation-stats.h.

◆ size_

std::atomic<size_t> v8::internal::AllocationStats::size_
private

Definition at line 109 of file allocation-stats.h.


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