public class SysMemUsageTable extends SparseMappingTable.Table
Constructor and Description |
---|
SysMemUsageTable(SparseMappingTable tableData)
Construct the SysMemUsageTable with 'tableData' as backing store
for the longs data.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(PrintWriter pw,
String prefix,
int[] screenStates,
int[] memStates) |
long[] |
getTotalMemUsage()
Return a long[] containing the merge of all of the usage in this table.
|
void |
mergeStats(int state,
long[] addData,
int addOff)
Merge the stats given into our own values.
|
void |
mergeStats(SysMemUsageTable that)
Merge the stats given into our own values.
|
static void |
mergeSysMemUsage(long[] dstData,
int dstOff,
long[] addData,
int addOff)
Merge the stats from one raw long[] into another.
|
copyFrom, dumpInternalState, getArrayForKey, getKey, getKeyAt, getKeyCount, getOrAddKey, getValue, getValue, getValueForId, getValueForId, readFromParcel, resetTable, setValue, setValue, writeToParcel
public SysMemUsageTable(SparseMappingTable tableData)
public void mergeStats(SysMemUsageTable that)
that
- SysMemUsageTable to copy from.public void mergeStats(int state, long[] addData, int addOff)
state
- The stateaddData
- The data array to copyaddOff
- The index in addOff to start copying frompublic long[] getTotalMemUsage()
public static void mergeSysMemUsage(long[] dstData, int dstOff, long[] addData, int addOff)
dstData
- The destination arraydstOff
- The index in the destination array to start fromaddData
- The source arrayaddOff
- The index in the source array to start frompublic void dump(PrintWriter pw, String prefix, int[] screenStates, int[] memStates)