toString method
A string representation of this object.
Some classes have a default textual representation,
often paired with a static parse
function (like int.parse).
These classes will provide the textual representation as
their string representation.
Other classes have no meaningful textual representation
that a program will care about.
Such classes will typically override toString
to provide
useful information when inspecting the object,
mainly for debugging or logging.
Implementation
@override
String toString() {
return 'AndroidStorage{单位(Byte) 进程占内存总大小: ${totalPssB!.sizeFormat()}, '
'其中:native内存:${summaryNativeHeap!.sizeFormat()},系统内存:${summarySystem!.sizeFormat()},总 swap 内存:${summaryTotalSwap!.sizeFormat()},显存:${summaryGraphics!.sizeFormat()},'
'java 内存:${summaryJavaHeap!.sizeFormat()},其他私有内存:${summaryPrivateOther!.sizeFormat()},静态代码、资源内存:${summaryCode!.sizeFormat()},栈内存:${summaryStack!.sizeFormat()}, '
'已使用的RAM: ${ramUseB!.sizeFormat()}, 全部的RAM容量: ${ramAllB!.sizeFormat()}, 可用RAM容量清理阈值: ${ramThreshold!.sizeFormat()}, 设备空闲RAM: ${ramAvailableB!.sizeFormat()}, lowMemory: $lowMemory, '
'已使用的ROM: ${romUseB!.sizeFormat()}, 全部的ROM容量: ${romAllB!.sizeFormat()}, '
'虚拟机已使用内存: ${jvmUseB!.sizeFormat()}, 当前虚拟机可用的最大内存: ${jvmMaxB!.sizeFormat()}, 当前虚拟机已分配的内存: ${jvmTotalB!.sizeFormat()}, 当前虚拟机已分配内存中未使用的部分: ${jvmFreeB!.sizeFormat()}}';
}