Add "dumpsys diskstats" to get a dump of disk-free values.

Also includes a trivial test of I/O latency.  (Mostly useful to be invoked
from checkin to poll disk-free and latency issues.  Also moderately useful
to see in a bugreport.)

Also make "dumpsys netstat" a non-no-op, in case we want this data.

Change-Id: Ia93550a23ca6b35586c5d9217890ee0a5801aae1
This commit is contained in:
Dan Egnor
2010-03-25 16:20:14 -07:00
parent 8e10a7b7c8
commit 621bc54598
3 changed files with 155 additions and 1 deletions

View File

@@ -399,6 +399,13 @@ class ServerThread extends Thread {
} catch (Throwable e) {
Slog.e(TAG, "Failure installing status bar icons", e);
}
try {
Slog.i(TAG, "DiskStats Service");
ServiceManager.addService("diskstats", new DiskStatsService(context));
} catch (Throwable e) {
Slog.e(TAG, "Failure starting DiskStats Service", e);
}
}
// make sure the ADB_ENABLED setting value matches the secure property value