#include "src/heap/heap-layout-tracer.h"
#include <iostream>
#include "src/heap/new-spaces.h"
#include "src/heap/paged-spaces.h"
#include "src/heap/read-only-spaces.h"
#include "src/heap/spaces-inl.h"
namespace v8 {
namespace internal {
namespace {
constexpr const char* TypeToCollectorName(v8::GCType gc_type) { … }
}
void HeapLayoutTracer::GCProloguePrintHeapLayout(v8::Isolate* isolate,
v8::GCType gc_type,
v8::GCCallbackFlags flags,
void* data) { … }
void HeapLayoutTracer::GCEpiloguePrintHeapLayout(v8::Isolate* isolate,
v8::GCType gc_type,
v8::GCCallbackFlags flags,
void* data) { … }
void HeapLayoutTracer::PrintMemoryChunk(std::ostream& os,
const MemoryChunkMetadata& chunk,
const char* owner_name) { … }
void HeapLayoutTracer::PrintHeapLayout(std::ostream& os, Heap* heap) { … }
}
}