|
virtual void | dumpNumericValue (const char *dumpName, const char *valueName, const char *units, uint64_t value)=0 |
| Appends a new memory dump (i.e. More...
|
|
virtual void | dumpStringValue (const char *, const char *, const char *) |
|
virtual void | setMemoryBacking (const char *dumpName, const char *backingType, const char *backingObjectId)=0 |
| Sets the memory backing for an existing dump. More...
|
|
virtual void | setDiscardableMemoryBacking (const char *dumpName, const SkDiscardableMemory &discardableMemoryObject)=0 |
| Specialization for memory backed by discardable memory. More...
|
|
virtual LevelOfDetail | getRequestedDetails () const =0 |
| Returns the type of details requested in the dump. More...
|
|
virtual bool | shouldDumpWrappedObjects () const |
| Returns true if we should dump wrapped objects. More...
|
|
virtual void | dumpWrappedState (const char *, bool) |
| If shouldDumpWrappedObjects() returns true then this function will be called to populate the output with information on whether the item being dumped is a wrapped object. More...
|
|
virtual bool | shouldDumpUnbudgetedObjects () const |
| Returns true if we should dump unbudgeted objects. More...
|
|
virtual void | dumpBudgetedState (const char *, bool) |
| If shouldDumpUnbudgetedObjects() returns true then this function will be called to populate the output with information on whether the item being dumped is budgeted. More...
|
|
Interface for memory tracing.
This interface is meant to be passed as argument to the memory dump methods of Skia objects. The implementation of this interface is provided by the embedder.
virtual void SkTraceMemoryDump::dumpNumericValue |
( |
const char * |
dumpName, |
|
|
const char * |
valueName, |
|
|
const char * |
units, |
|
|
uint64_t |
value |
|
) |
| |
|
pure virtual |
Appends a new memory dump (i.e.
a row) to the trace memory infrastructure. If dumpName does not exist yet, a new one is created. Otherwise, a new column is appended to the previously created dump. Arguments: dumpName: an absolute, slash-separated, name for the item being dumped e.g., "skia/CacheX/EntryY". valueName: a string indicating the name of the column. e.g., "size", "active_size", "number_of_objects". This string is supposed to be long lived and is NOT copied. units: a string indicating the units for the value. e.g., "bytes", "objects". This string is supposed to be long lived and is NOT copied. value: the actual value being dumped.