chromium/v8/src/heap/heap-layout-tracer.cc

// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

// static
void HeapLayoutTracer::GCProloguePrintHeapLayout(v8::Isolate* isolate,
                                                 v8::GCType gc_type,
                                                 v8::GCCallbackFlags flags,
                                                 void* data) {}

// static
void HeapLayoutTracer::GCEpiloguePrintHeapLayout(v8::Isolate* isolate,
                                                 v8::GCType gc_type,
                                                 v8::GCCallbackFlags flags,
                                                 void* data) {}

// static
void HeapLayoutTracer::PrintMemoryChunk(std::ostream& os,
                                        const MemoryChunkMetadata& chunk,
                                        const char* owner_name) {}

// static
void HeapLayoutTracer::PrintHeapLayout(std::ostream& os, Heap* heap) {}
}  // namespace internal
}  // namespace v8