v8
10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
heap-statistics.h
Go to the documentation of this file.
1
// Copyright 2021 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef INCLUDE_CPPGC_HEAP_STATISTICS_H_
6
#define INCLUDE_CPPGC_HEAP_STATISTICS_H_
7
8
#include <cstddef>
9
#include <cstdint>
10
#include <string>
11
#include <vector>
12
13
namespace
cppgc
{
14
19
struct
HeapStatistics
final {
28
enum
DetailLevel
: uint8_t {
29
kBrief
,
30
kDetailed
,
31
};
32
36
struct
ObjectStatsEntry
{
40
size_t
allocated_bytes
;
44
size_t
object_count
;
45
};
46
51
struct
PageStatistics
{
53
size_t
committed_size_bytes
= 0;
55
size_t
resident_size_bytes
= 0;
57
size_t
used_size_bytes
= 0;
60
std::vector<ObjectStatsEntry>
object_statistics
;
61
};
62
69
struct
FreeListStatistics
{
71
std::vector<size_t>
bucket_size
;
73
std::vector<size_t>
free_count
;
75
std::vector<size_t>
free_size
;
76
};
77
84
struct
SpaceStatistics
{
86
std::string
name
;
88
size_t
committed_size_bytes
= 0;
90
size_t
resident_size_bytes
= 0;
92
size_t
used_size_bytes
= 0;
94
std::vector<PageStatistics>
page_stats
;
96
FreeListStatistics
free_list_stats
;
97
};
98
100
size_t
committed_size_bytes
= 0;
102
size_t
resident_size_bytes
= 0;
104
size_t
used_size_bytes
= 0;
106
DetailLevel
detail_level
;
107
110
std::vector<SpaceStatistics>
space_stats
;
111
115
std::vector<std::string>
type_names
;
116
};
117
118
}
// namespace cppgc
119
120
#endif
// INCLUDE_CPPGC_HEAP_STATISTICS_H_
cppgc
Definition
allocation.h:38
cppgc::HeapStatistics::FreeListStatistics
Definition
heap-statistics.h:69
cppgc::HeapStatistics::FreeListStatistics::free_size
std::vector< size_t > free_size
Definition
heap-statistics.h:75
cppgc::HeapStatistics::FreeListStatistics::free_count
std::vector< size_t > free_count
Definition
heap-statistics.h:73
cppgc::HeapStatistics::FreeListStatistics::bucket_size
std::vector< size_t > bucket_size
Definition
heap-statistics.h:71
cppgc::HeapStatistics::ObjectStatsEntry
Definition
heap-statistics.h:36
cppgc::HeapStatistics::ObjectStatsEntry::object_count
size_t object_count
Definition
heap-statistics.h:44
cppgc::HeapStatistics::ObjectStatsEntry::allocated_bytes
size_t allocated_bytes
Definition
heap-statistics.h:40
cppgc::HeapStatistics::PageStatistics
Definition
heap-statistics.h:51
cppgc::HeapStatistics::PageStatistics::object_statistics
std::vector< ObjectStatsEntry > object_statistics
Definition
heap-statistics.h:60
cppgc::HeapStatistics::PageStatistics::resident_size_bytes
size_t resident_size_bytes
Definition
heap-statistics.h:55
cppgc::HeapStatistics::PageStatistics::used_size_bytes
size_t used_size_bytes
Definition
heap-statistics.h:57
cppgc::HeapStatistics::PageStatistics::committed_size_bytes
size_t committed_size_bytes
Definition
heap-statistics.h:53
cppgc::HeapStatistics::SpaceStatistics
Definition
heap-statistics.h:84
cppgc::HeapStatistics::SpaceStatistics::page_stats
std::vector< PageStatistics > page_stats
Definition
heap-statistics.h:94
cppgc::HeapStatistics::SpaceStatistics::resident_size_bytes
size_t resident_size_bytes
Definition
heap-statistics.h:90
cppgc::HeapStatistics::SpaceStatistics::used_size_bytes
size_t used_size_bytes
Definition
heap-statistics.h:92
cppgc::HeapStatistics::SpaceStatistics::free_list_stats
FreeListStatistics free_list_stats
Definition
heap-statistics.h:96
cppgc::HeapStatistics::SpaceStatistics::name
std::string name
Definition
heap-statistics.h:86
cppgc::HeapStatistics::SpaceStatistics::committed_size_bytes
size_t committed_size_bytes
Definition
heap-statistics.h:88
cppgc::HeapStatistics
Definition
heap-statistics.h:19
cppgc::HeapStatistics::resident_size_bytes
size_t resident_size_bytes
Definition
heap-statistics.h:102
cppgc::HeapStatistics::type_names
std::vector< std::string > type_names
Definition
heap-statistics.h:115
cppgc::HeapStatistics::used_size_bytes
size_t used_size_bytes
Definition
heap-statistics.h:104
cppgc::HeapStatistics::space_stats
std::vector< SpaceStatistics > space_stats
Definition
heap-statistics.h:110
cppgc::HeapStatistics::DetailLevel
DetailLevel
Definition
heap-statistics.h:28
cppgc::HeapStatistics::kBrief
@ kBrief
Definition
heap-statistics.h:29
cppgc::HeapStatistics::kDetailed
@ kDetailed
Definition
heap-statistics.h:30
cppgc::HeapStatistics::committed_size_bytes
size_t committed_size_bytes
Definition
heap-statistics.h:100
cppgc::HeapStatistics::detail_level
DetailLevel detail_level
Definition
heap-statistics.h:106
include
cppgc
heap-statistics.h
Generated on Sat Jun 10 2023 16:59:17 for v8 by
1.9.7