v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
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;
109
112 std::vector<SpaceStatistics> space_stats;
113
117 std::vector<std::string> type_names;
118};
119
120} // namespace cppgc
121
122#endif // INCLUDE_CPPGC_HEAP_STATISTICS_H_
std::vector< ObjectStatsEntry > object_statistics
std::vector< PageStatistics > page_stats
std::vector< std::string > type_names
std::vector< SpaceStatistics > space_stats