Added runtime stats to debug info

pull/204/head
M66B 3 years ago
parent 8f0d1e3bf4
commit dd5c1d0ba3

@ -1842,6 +1842,16 @@ public class Log {
sb.append("\r\n");
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
try {
Map<String, String> stats = Debug.getRuntimeStats();
for (String key : stats.keySet())
sb.append(key).append('=').append(stats.get(key)).append("\r\n");
sb.append("\r\n");
} catch (Throwable ex) {
sb.append(ex.toString()).append("\r\n");
}
sb.append(String.format("Installed: %s\r\n", new Date(Helper.getInstallTime(context))));
sb.append(String.format("Now: %s\r\n", new Date()));

Loading…
Cancel
Save