v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
heap-layout-tracer.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 V8_HEAP_HEAP_LAYOUT_TRACER_H_
6#define V8_HEAP_HEAP_LAYOUT_TRACER_H_
7
10
11namespace v8 {
12namespace internal {
13
14class Heap;
15class MemoryChunkMetadata;
16
18 public:
19 static void GCProloguePrintHeapLayout(v8::Isolate* isolate,
20 v8::GCType gc_type,
21 v8::GCCallbackFlags flags, void* data);
22 static void GCEpiloguePrintHeapLayout(v8::Isolate* isolate,
23 v8::GCType gc_type,
24 v8::GCCallbackFlags flags, void* data);
25
26 private:
27 static void PrintMemoryChunk(std::ostream& os,
28 const MemoryChunkMetadata& chunk,
29 const char* owner_name);
30 static void PrintHeapLayout(std::ostream& os, Heap* heap);
31};
32} // namespace internal
33} // namespace v8
34#endif // V8_HEAP_HEAP_LAYOUT_TRACER_H_
static void GCEpiloguePrintHeapLayout(v8::Isolate *isolate, v8::GCType gc_type, v8::GCCallbackFlags flags, void *data)
static void GCProloguePrintHeapLayout(v8::Isolate *isolate, v8::GCType gc_type, v8::GCCallbackFlags flags, void *data)
static void PrintMemoryChunk(std::ostream &os, const MemoryChunkMetadata &chunk, const char *owner_name)
static void PrintHeapLayout(std::ostream &os, Heap *heap)
GCCallbackFlags