v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
code-stats.h
Go to the documentation of this file.
1
// Copyright 2016 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 V8_HEAP_CODE_STATS_H_
6
#define V8_HEAP_CODE_STATS_H_
7
8
namespace
v8
{
9
namespace
internal
{
10
11
class
AbstractCode;
12
class
CodeCommentsIterator;
13
class
HeapObject;
14
class
Isolate;
15
class
OldLargeObjectSpace;
16
class
PagedSpace;
17
template
<
typename
T>
18
class
Tagged
;
19
20
class
CodeStatistics
{
21
public
:
22
// Collect statistics related to code size.
23
static
void
CollectCodeStatistics
(
PagedSpace
* space,
Isolate
* isolate);
24
25
// Collect statistics related to code size from large object space.
26
static
void
CollectCodeStatistics
(
OldLargeObjectSpace
* space,
27
Isolate
* isolate);
28
29
// Reset code size related statistics
30
static
void
ResetCodeAndMetadataStatistics
(
Isolate
* isolate);
31
32
#ifdef DEBUG
33
// Report statistics about code kind, code+metadata and code comments.
34
static
void
ReportCodeStatistics(
Isolate
* isolate);
35
#endif
36
37
private
:
38
static
void
RecordCodeAndMetadataStatistics
(
Tagged<HeapObject>
object
,
39
Isolate
* isolate);
40
41
#ifdef DEBUG
42
static
void
ResetCodeStatistics(
Isolate
* isolate);
43
#endif
44
};
45
46
}
// namespace internal
47
}
// namespace v8
48
49
#endif
// V8_HEAP_CODE_STATS_H_
v8::internal::CodeStatistics
Definition
code-stats.h:20
v8::internal::CodeStatistics::RecordCodeAndMetadataStatistics
static void RecordCodeAndMetadataStatistics(Tagged< HeapObject > object, Isolate *isolate)
Definition
code-stats.cc:17
v8::internal::CodeStatistics::ResetCodeAndMetadataStatistics
static void ResetCodeAndMetadataStatistics(Isolate *isolate)
Definition
code-stats.cc:51
v8::internal::CodeStatistics::CollectCodeStatistics
static void CollectCodeStatistics(PagedSpace *space, Isolate *isolate)
Definition
code-stats.cc:63
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::OldLargeObjectSpace
Definition
large-spaces.h:142
v8::internal::PagedSpace
Definition
paged-spaces.h:361
v8::internal::Tagged
Definition
waiter-queue-node.h:21
v8::internal::Tagged
Tagged(T object) -> Tagged< T >
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
src
heap
code-stats.h
Generated on Sun Apr 6 2025 21:08:54 for v8 by
1.12.0