chromium/services/resource_coordinator/memory_instrumentation/global_dump_graph_converter.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/resource_coordinator/memory_instrumentation/global_dump_graph_converter.h"

#include <list>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/trace_event/process_memory_dump.h"
#include "third_party/perfetto/include/perfetto/ext/trace_processor/importers/memory_tracker/graph_processor.h"

namespace memory_instrumentation {

GlobalNodeGraph;

GlobalDumpGraphConverter::GlobalDumpGraphConverter() = default;
GlobalDumpGraphConverter::~GlobalDumpGraphConverter() = default;

std::unique_ptr<GlobalDumpGraph> GlobalDumpGraphConverter::Convert(
    const GlobalNodeGraph& input) const {}

void GlobalDumpGraphConverter::CopyAndConvertProcessDumps(
    const GlobalNodeGraph& input,
    GlobalDumpGraph* output,
    NodePointerPerfettoToChromeMap* pointer_map) const {}

void GlobalDumpGraphConverter::CopyAndConvertSharedMemoryGraph(
    const GlobalNodeGraph& input,
    GlobalDumpGraph* output,
    NodePointerPerfettoToChromeMap* pointer_map) const {}

void GlobalDumpGraphConverter::CopyAndConvertNodeTree(
    const GlobalNodeGraph::Node* input,
    GlobalDumpGraph::Process* output,
    const std::string& node_path,
    NodePointerPerfettoToChromeMap* pointer_map) const {}

base::trace_event::MemoryAllocatorDumpGuid
GlobalDumpGraphConverter::ConvertMemoryAllocatorDumpGuid(
    const perfetto::trace_processor::MemoryAllocatorNodeId& input) const {}

void GlobalDumpGraphConverter::CopyNodeMembers(
    const GlobalNodeGraph::Node& input,
    GlobalDumpGraph::Node* output) const {}

void GlobalDumpGraphConverter::CopyAndConvertEdges(
    const GlobalNodeGraph& input,
    GlobalDumpGraph* output,
    NodePointerPerfettoToChromeMap* pointer_map) const {}

void GlobalDumpGraphConverter::CopyAndConvertEdge(
    const GlobalNodeGraph::Edge& input,
    GlobalDumpGraph* output,
    const NodePointerPerfettoToChromeMap* pointer_map) const {}

GlobalDumpGraph::Node::Entry::ScalarUnits
GlobalDumpGraphConverter::ConvertScalarUnits(
    GlobalNodeGraph::Node::Entry::ScalarUnits input) const {}

}  // namespace memory_instrumentation