summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvinankumar Vellore Suriyakumar <avellore@google.com>2016-02-11 16:18:46 -0800
committerAvinankumar Vellore Suriyakumar <avellore@google.com>2016-02-11 16:39:04 -0800
commit61a8a07e6770a403ebdb2d55dffcb33409573357 (patch)
tree40350b6e8ef2497e0ed4c3897acc85f58fee2252 /src
parentedafa5991fe8f248f81428c4728a52a6ab1d82f8 (diff)
downloadloganalysis-61a8a07e6770a403ebdb2d55dffcb33409573357.tar.gz
Fix process usage parser
Ensure the last process stats are added to the list Change-Id: Iba910f079748196650d1934249c47821abeb7913
Diffstat (limited to 'src')
-rw-r--r--src/com/android/loganalysis/parser/ProcessUsageParser.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/loganalysis/parser/ProcessUsageParser.java b/src/com/android/loganalysis/parser/ProcessUsageParser.java
index 9609cd2..2bbe47c 100644
--- a/src/com/android/loganalysis/parser/ProcessUsageParser.java
+++ b/src/com/android/loganalysis/parser/ProcessUsageParser.java
@@ -84,6 +84,12 @@ public class ProcessUsageParser implements IParser {
alarmWakeups = Integer.parseInt(m.group(1));
}
}
+ // Add the last process usage stats to the list
+ if (processUid != null) {
+ // Save the process usage info for the previous process
+ mItem.addProcessUsage(processUid, alarmWakeups, mSensorUsage);
+ }
+
return mItem;
}