#include "services/resource_coordinator/memory_instrumentation/memory_dump_map_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 {
MemoryDumpMapConverter::MemoryDumpMapConverter() = default;
MemoryDumpMapConverter::~MemoryDumpMapConverter() = default;
perfetto::trace_processor::GraphProcessor::RawMemoryNodeMap
MemoryDumpMapConverter::Convert(const MemoryDumpMap& input) { … }
std::unique_ptr<MemoryDumpMapConverter::PerfettoProcessMemoryNode>
MemoryDumpMapConverter::ConvertProcessMemoryDump(
const base::trace_event::ProcessMemoryDump& input) { … }
perfetto::trace_processor::LevelOfDetail
MemoryDumpMapConverter::ConvertLevelOfDetail(
const base::trace_event::MemoryDumpLevelOfDetail& input) const { … }
std::vector<perfetto::trace_processor::RawMemoryGraphNode::MemoryNodeEntry>
MemoryDumpMapConverter::ConvertAllocatorDumpEntries(
const base::trace_event::MemoryAllocatorDump& input) const { … }
std::unique_ptr<perfetto::trace_processor::RawMemoryGraphNode>
MemoryDumpMapConverter::ConvertMemoryAllocatorDump(
const base::trace_event::MemoryAllocatorDump& input) const { … }
void MemoryDumpMapConverter::CopyAndConvertAllocatorDumpFlags(
const base::trace_event::MemoryAllocatorDump& input,
perfetto::trace_processor::RawMemoryGraphNode* output) const { … }
MemoryDumpMapConverter::PerfettoProcessMemoryNode::MemoryNodesMap
MemoryDumpMapConverter::ConvertAllocatorDumps(
const base::trace_event::ProcessMemoryDump& input) const { … }
MemoryDumpMapConverter::PerfettoProcessMemoryNode::AllocatorNodeEdgesMap
MemoryDumpMapConverter::ConvertAllocatorDumpEdges(
const base::trace_event::ProcessMemoryDump& input) const { … }
std::unique_ptr<perfetto::trace_processor::MemoryGraphEdge>
MemoryDumpMapConverter::ConvertAllocatorDumpEdge(
const base::trace_event::ProcessMemoryDump::MemoryAllocatorDumpEdge& input)
const { … }
perfetto::trace_processor::MemoryAllocatorNodeId
MemoryDumpMapConverter::ConvertMemoryAllocatorDumpGuid(
const base::trace_event::MemoryAllocatorDumpGuid& input) const { … }
}