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

#include <memory-measurement.h>

Collaboration diagram for v8::internal::NativeContextStats:

Public Member Functions

V8_INLINE void IncrementSize (Address context, Tagged< Map > map, Tagged< HeapObject > object, size_t size)
 
size_t Get (Address context) const
 
void Clear ()
 
void Merge (const NativeContextStats &other)
 
bool Empty () const
 

Private Member Functions

V8_INLINE bool HasExternalBytes (Tagged< Map > map)
 
void IncrementExternalSize (Address context, Tagged< Map > map, Tagged< HeapObject > object)
 

Private Attributes

std::unordered_map< Address, size_tsize_by_context_
 

Detailed Description

Definition at line 81 of file memory-measurement.h.

Member Function Documentation

◆ Clear()

void v8::internal::NativeContextStats::Clear ( )

Definition at line 375 of file memory-measurement.cc.

Here is the caller graph for this function:

◆ Empty()

bool v8::internal::NativeContextStats::Empty ( ) const
inline

Definition at line 94 of file memory-measurement.h.

◆ Get()

size_t v8::internal::NativeContextStats::Get ( Address context) const
inline

Definition at line 86 of file memory-measurement.h.

◆ HasExternalBytes()

V8_INLINE bool v8::internal::NativeContextStats::HasExternalBytes ( Tagged< Map > map)
private

Definition at line 32 of file memory-measurement-inl.h.

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

◆ IncrementExternalSize()

void v8::internal::NativeContextStats::IncrementExternalSize ( Address context,
Tagged< Map > map,
Tagged< HeapObject > object )
private

Definition at line 383 of file memory-measurement.cc.

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

◆ IncrementSize()

V8_INLINE void v8::internal::NativeContextStats::IncrementSize ( Address context,
Tagged< Map > map,
Tagged< HeapObject > object,
size_t size )

Definition at line 38 of file memory-measurement-inl.h.

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

◆ Merge()

void v8::internal::NativeContextStats::Merge ( const NativeContextStats & other)

Definition at line 377 of file memory-measurement.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ size_by_context_

std::unordered_map<Address, size_t> v8::internal::NativeContextStats::size_by_context_
private

Definition at line 100 of file memory-measurement.h.


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