#include "services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation.h"
#include "base/functional/bind.h"
namespace memory_instrumentation {
namespace {
MemoryInstrumentation* g_instance = …;
void WrapGlobalMemoryDump(
MemoryInstrumentation::RequestGlobalDumpCallback callback,
bool success,
mojom::GlobalMemoryDumpPtr dump) { … }
}
void MemoryInstrumentation::CreateInstance(
mojo::PendingRemote<memory_instrumentation::mojom::Coordinator> coordinator,
bool is_browser_process) { … }
MemoryInstrumentation* MemoryInstrumentation::GetInstance() { … }
MemoryInstrumentation::MemoryInstrumentation(
mojo::PendingRemote<memory_instrumentation::mojom::Coordinator> coordinator,
bool is_browser_process)
: … { … }
MemoryInstrumentation::~MemoryInstrumentation() { … }
void MemoryInstrumentation::RequestGlobalDump(
const std::vector<std::string>& allocator_dump_names,
RequestGlobalDumpCallback callback) { … }
void MemoryInstrumentation::RequestPrivateMemoryFootprint(
base::ProcessId pid,
RequestGlobalDumpCallback callback) { … }
void MemoryInstrumentation::RequestGlobalDumpForPid(
base::ProcessId pid,
const std::vector<std::string>& allocator_dump_names,
RequestGlobalDumpCallback callback) { … }
void MemoryInstrumentation::RequestGlobalDumpAndAppendToTrace(
MemoryDumpType dump_type,
MemoryDumpLevelOfDetail level_of_detail,
MemoryDumpDeterminism determinism,
RequestGlobalMemoryDumpAndAppendToTraceCallback callback) { … }
}