toString method
Returns the textual representation of the current memory statistics.
Implementation
@override
String toString() {
return """
Allocation count: ${allocationCount.toString().padLeft(10)}
Release count: ${freeCount.toString().padLeft(10)}
Total allocated memory: ${allocatedSum.toString().padLeft(10)} B
Total released memory: ${freedSum.toString().padLeft(10)} B
Peak allocated memory: ${maxAllocated.toString().padLeft(10)} B
Memory allocated now: ${allocated.toString().padLeft(10)} B
""";
}