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

#include <heap-statistics-collector.h>

Inheritance diagram for cppgc::internal::HeapStatisticsCollector:
Collaboration diagram for cppgc::internal::HeapStatisticsCollector:

Public Member Functions

HeapStatistics CollectDetailedStatistics (HeapBase *)
 

Private Member Functions

bool VisitNormalPageSpace (NormalPageSpace &)
 
bool VisitLargePageSpace (LargePageSpace &)
 
bool VisitNormalPage (NormalPage &)
 
bool VisitLargePage (LargePage &)
 
bool VisitHeapObjectHeader (HeapObjectHeader &)
 
- Private Member Functions inherited from cppgc::internal::HeapVisitor< HeapStatisticsCollector >
void Traverse (RawHeap &heap)
 
void Traverse (BaseSpace &space)
 
void Traverse (BasePage &page)
 
bool VisitHeap (RawHeap &)
 
bool VisitNormalPageSpace (NormalPageSpace &)
 
bool VisitLargePageSpace (LargePageSpace &)
 
bool VisitNormalPage (NormalPage &)
 
bool VisitLargePage (LargePage &)
 
bool VisitHeapObjectHeader (HeapObjectHeader &)
 

Private Attributes

HeapStatisticscurrent_stats_
 
HeapStatistics::SpaceStatisticscurrent_space_stats_ = nullptr
 
HeapStatistics::PageStatisticscurrent_page_stats_ = nullptr
 
std::unordered_map< const void *, size_t > type_name_to_index_map_
 

Friends

class HeapVisitor< HeapStatisticsCollector >
 

Detailed Description

Definition at line 16 of file heap-statistics-collector.h.

Member Function Documentation

◆ CollectDetailedStatistics()

HeapStatistics cppgc::internal::HeapStatisticsCollector::CollectDetailedStatistics ( HeapBase * heap)

Definition at line 95 of file heap-statistics-collector.cc.

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

◆ VisitHeapObjectHeader()

bool cppgc::internal::HeapStatisticsCollector::VisitHeapObjectHeader ( HeapObjectHeader & header)
private

Definition at line 171 of file heap-statistics-collector.cc.

Here is the call graph for this function:

◆ VisitLargePage()

bool cppgc::internal::HeapStatisticsCollector::VisitLargePage ( LargePage & page)
private

Definition at line 159 of file heap-statistics-collector.cc.

Here is the call graph for this function:

◆ VisitLargePageSpace()

bool cppgc::internal::HeapStatisticsCollector::VisitLargePageSpace ( LargePageSpace & space)
private

Definition at line 140 of file heap-statistics-collector.cc.

◆ VisitNormalPage()

bool cppgc::internal::HeapStatisticsCollector::VisitNormalPage ( NormalPage & page)
private

Definition at line 148 of file heap-statistics-collector.cc.

◆ VisitNormalPageSpace()

bool cppgc::internal::HeapStatisticsCollector::VisitNormalPageSpace ( NormalPageSpace & space)
private

Definition at line 127 of file heap-statistics-collector.cc.

Friends And Related Symbol Documentation

◆ HeapVisitor< HeapStatisticsCollector >

friend class HeapVisitor< HeapStatisticsCollector >
friend

Definition at line 1 of file heap-statistics-collector.h.

Member Data Documentation

◆ current_page_stats_

HeapStatistics::PageStatistics* cppgc::internal::HeapStatisticsCollector::current_page_stats_ = nullptr
private

Definition at line 31 of file heap-statistics-collector.h.

◆ current_space_stats_

HeapStatistics::SpaceStatistics* cppgc::internal::HeapStatisticsCollector::current_space_stats_ = nullptr
private

Definition at line 30 of file heap-statistics-collector.h.

◆ current_stats_

HeapStatistics* cppgc::internal::HeapStatisticsCollector::current_stats_
private

Definition at line 29 of file heap-statistics-collector.h.

◆ type_name_to_index_map_

std::unordered_map<const void*, size_t> cppgc::internal::HeapStatisticsCollector::type_name_to_index_map_
private

Definition at line 36 of file heap-statistics-collector.h.


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