8 #ifndef SkTraceMemoryDump_DEFINED
9 #define SkTraceMemoryDump_DEFINED
13 class SkDiscardableMemory;
30 kObjectsBreakdowns_LevelOfDetail
49 const char* valueName,
63 const char* backingType,
64 const char* backingObjectId) = 0;
71 const SkDiscardableMemory& discardableMemoryObject) = 0;
Interface for memory tracing.
Definition: SkTraceMemoryDump.h:20
virtual void setMemoryBacking(const char *dumpName, const char *backingType, const char *backingObjectId)=0
Sets the memory backing for an existing dump.
SkTraceMemoryDump(const SkTraceMemoryDump &)=delete
SkTraceMemoryDump()=default
virtual void setDiscardableMemoryBacking(const char *dumpName, const SkDiscardableMemory &discardableMemoryObject)=0
Specialization for memory backed by discardable memory.
virtual LevelOfDetail getRequestedDetails() const =0
Returns the type of details requested in the dump.
virtual ~SkTraceMemoryDump()=default
virtual bool shouldDumpUnbudgetedObjects() const
Returns true if we should dump unbudgeted objects.
Definition: SkTraceMemoryDump.h:98
LevelOfDetail
Enum to specify the level of the requested details for the dump from the Skia objects.
Definition: SkTraceMemoryDump.h:25
@ kLight_LevelOfDetail
Definition: SkTraceMemoryDump.h:27
SkTraceMemoryDump & operator=(const SkTraceMemoryDump &)=delete
virtual void dumpWrappedState(const char *, bool)
If shouldDumpWrappedObjects() returns true then this function will be called to populate the output w...
Definition: SkTraceMemoryDump.h:90
virtual void dumpStringValue(const char *, const char *, const char *)
Definition: SkTraceMemoryDump.h:53
virtual void dumpBudgetedState(const char *, bool)
If shouldDumpUnbudgetedObjects() returns true then this function will be called to populate the outpu...
Definition: SkTraceMemoryDump.h:105
virtual bool shouldDumpWrappedObjects() const
Returns true if we should dump wrapped objects.
Definition: SkTraceMemoryDump.h:84
virtual void dumpNumericValue(const char *dumpName, const char *valueName, const char *units, uint64_t value)=0
Appends a new memory dump (i.e.