Added storage space debug info

This commit is contained in:
M66B
2019-10-19 21:53:19 +02:00
parent 3cf2c89708
commit c815f1fcd0
5 changed files with 29 additions and 2 deletions

View File

@@ -541,6 +541,9 @@ public class Log {
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
sb.append(String.format("Memory class: %d\r\n", am.getMemoryClass()));
sb.append(String.format("Storage space: %s\r\n",
Helper.humanReadableByteCount(Helper.getStorageSpace(), true)));
Runtime rt = Runtime.getRuntime();
long hused = (rt.totalMemory() - rt.freeMemory()) / 1024L;
long hmax = rt.maxMemory() / 1024L;