v8 12.4.254 (node 22.4.1)
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
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_
size_t object_count
size_t allocated_bytes
std::vector< ObjectStatsEntry > object_statistics
std::vector< PageStatistics > page_stats
std::vector< std::string > type_names
std::vector< SpaceStatistics > space_stats