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
13namespace cppgc {
14
19struct HeapStatistics final {
28 enum DetailLevel : uint8_t {
31 };
32
45 };
46
57 size_t used_size_bytes = 0;
60 std::vector<ObjectStatsEntry> object_statistics;
61 };
62
71 std::vector<size_t> bucket_size;
73 std::vector<size_t> free_count;
75 std::vector<size_t> free_size;
76 };
77
86 std::string name;
92 size_t used_size_bytes = 0;
94 std::vector<PageStatistics> page_stats;
97 };
98
104 size_t used_size_bytes = 0;
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_
Definition: allocation.h:38
Definition: heap-statistics.h:69
std::vector< size_t > free_count
Definition: heap-statistics.h:73
std::vector< size_t > bucket_size
Definition: heap-statistics.h:71
std::vector< size_t > free_size
Definition: heap-statistics.h:75
Definition: heap-statistics.h:36
size_t object_count
Definition: heap-statistics.h:44
size_t allocated_bytes
Definition: heap-statistics.h:40
Definition: heap-statistics.h:51
size_t used_size_bytes
Definition: heap-statistics.h:57
size_t resident_size_bytes
Definition: heap-statistics.h:55
size_t committed_size_bytes
Definition: heap-statistics.h:53
std::vector< ObjectStatsEntry > object_statistics
Definition: heap-statistics.h:60
Definition: heap-statistics.h:84
size_t used_size_bytes
Definition: heap-statistics.h:92
size_t committed_size_bytes
Definition: heap-statistics.h:88
size_t resident_size_bytes
Definition: heap-statistics.h:90
std::vector< PageStatistics > page_stats
Definition: heap-statistics.h:94
std::string name
Definition: heap-statistics.h:86
FreeListStatistics free_list_stats
Definition: heap-statistics.h:96
Definition: heap-statistics.h:19
size_t resident_size_bytes
Definition: heap-statistics.h:102
DetailLevel
Definition: heap-statistics.h:28
@ kDetailed
Definition: heap-statistics.h:30
@ kBrief
Definition: heap-statistics.h:29
std::vector< std::string > type_names
Definition: heap-statistics.h:115
DetailLevel detail_level
Definition: heap-statistics.h:106
size_t committed_size_bytes
Definition: heap-statistics.h:100
std::vector< SpaceStatistics > space_stats
Definition: heap-statistics.h:110
size_t used_size_bytes
Definition: heap-statistics.h:104