public override string ToString() { long stat = AsLong(); return(stat == -1 ? "??" : Format.bytes(stat) + "/s"); }
private static string MemoryStats() { Runtime runtime = Runtime.Runtime; return(format("Memory[used:%s, free:%s, total:%s, max:%s]", Format.bytes(runtime.totalMemory() - runtime.freeMemory()), Format.bytes(runtime.freeMemory()), Format.bytes(runtime.totalMemory()), Format.bytes(runtime.maxMemory()))); }