Esempio n. 1
0
        public override string ToString()
        {
            long stat = AsLong();

            return(stat == -1 ? "??" : Format.bytes(stat) + "/s");
        }
Esempio n. 2
0
        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())));
        }