Index: tracing/tracing/extras/importer/linux_perf/android_parser.html |
diff --git a/tracing/tracing/extras/importer/linux_perf/android_parser.html b/tracing/tracing/extras/importer/linux_perf/android_parser.html |
index 14660928d73458e7fae8b007e36aa1557a6e6ec6..0407db738a9f03ba7a24a600b74e11527ee07502 100644 |
--- a/tracing/tracing/extras/importer/linux_perf/android_parser.html |
+++ b/tracing/tracing/extras/importer/linux_perf/android_parser.html |
@@ -41,8 +41,9 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
var argsArray = argsString.split(';'); |
for (var i = 0; i < argsArray.length; ++i) { |
var parts = argsArray[i].split('='); |
- if (parts[0]) |
+ if (parts[0]) { |
args[parts.shift()] = parts.join('='); |
+ } |
} |
} |
return args; |
@@ -108,8 +109,9 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
var title = eventData[2]; |
var args = parseArgs(eventData[3]); |
var category = eventData[4]; |
- if (category === undefined) |
+ if (category === undefined) { |
category = 'android'; |
+ } |
var thread = this.model_.getOrCreateProcess(ppid) |
.getOrCreateThread(pid); |
@@ -163,8 +165,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
var name = eventData[2]; |
var value = parseInt(eventData[3]); |
var category = eventData[4]; |
- if (category === undefined) |
- category = 'android'; |
+ if (category === undefined) category = 'android'; |
var ctr = this.model_.getOrCreateProcess(ppid) |
.getOrCreateCounter(category, name); |
@@ -187,8 +188,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
var cookie = parseInt(eventData[3]); |
var args = parseArgs(eventData[4]); |
var category = eventData[5]; |
- if (category === undefined) |
- category = 'android'; |
+ if (category === undefined) category = 'android'; |
var thread = this.model_.getOrCreateProcess(ppid) |
@@ -209,8 +209,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
var cookie = parseInt(eventData[3]); |
var args = parseArgs(eventData[4]); |
var category = eventData[5]; |
- if (category === undefined) |
- category = 'android'; |
+ if (category === undefined) category = 'android'; |
var thread = this.model_.getOrCreateProcess(ppid) |
.getOrCreateThread(pid); |