#include "skia/ext/skia_trace_memory_dump_impl.h"
#include "base/trace_event/memory_allocator_dump.h"
#include "base/trace_event/memory_dump_manager.h"
#include "base/trace_event/process_memory_dump.h"
#include "skia/ext/SkDiscardableMemory_chrome.h"
namespace skia {
namespace {
const char kMallocBackingType[] = …;
}
SkiaTraceMemoryDumpImpl::SkiaTraceMemoryDumpImpl(
base::trace_event::MemoryDumpLevelOfDetail level_of_detail,
base::trace_event::ProcessMemoryDump* process_memory_dump)
: … { … }
SkiaTraceMemoryDumpImpl::SkiaTraceMemoryDumpImpl(
const std::string& dump_name_prefix,
base::trace_event::MemoryDumpLevelOfDetail level_of_detail,
base::trace_event::ProcessMemoryDump* process_memory_dump)
: … { … }
SkiaTraceMemoryDumpImpl::~SkiaTraceMemoryDumpImpl() = default;
void SkiaTraceMemoryDumpImpl::dumpNumericValue(const char* dump_name,
const char* value_name,
const char* units,
uint64_t value) { … }
void SkiaTraceMemoryDumpImpl::dumpStringValue(const char* dump_name,
const char* value_name,
const char* value) { … }
void SkiaTraceMemoryDumpImpl::setMemoryBacking(const char* dump_name,
const char* backing_type,
const char* backing_object_id) { … }
void SkiaTraceMemoryDumpImpl::setDiscardableMemoryBacking(
const char* dump_name,
const SkDiscardableMemory& discardable_memory) { … }
SkTraceMemoryDump::LevelOfDetail SkiaTraceMemoryDumpImpl::getRequestedDetails()
const { … }
bool SkiaTraceMemoryDumpImpl::shouldDumpWrappedObjects() const { … }
void SkiaTraceMemoryDumpImpl::dumpWrappedState(const char* dump_name,
bool wrapped) { … }
bool SkiaTraceMemoryDumpImpl::shouldDumpUnbudgetedObjects() const { … }
void SkiaTraceMemoryDumpImpl::dumpBudgetedState(const char* dump_name,
bool budgeted) { … }
}