Log number of logcat lines

Refs #243
This commit is contained in:
M66B 2016-02-10 12:29:52 +01:00
parent 92f8dd662d
commit bdcb1056b4
1 changed files with 5 additions and 1 deletions

View File

@ -785,9 +785,13 @@ public class Util {
String[] command = new String[]{"logcat", "-d", "-v", "threadtime"};
process = Runtime.getRuntime().exec(command);
br = new BufferedReader(new InputStreamReader(process.getInputStream()));
int count = 0;
String line;
while ((line = br.readLine()) != null)
while ((line = br.readLine()) != null) {
count++;
builder.append(line).append("\r\n");
}
Log.i(TAG, "Logcat lines=" + count);
} catch (IOException ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
} finally {