mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 10:10:46 +00:00
module/systrace: Handle empty lines for category listing
This commit is contained in:
parent
78de479a43
commit
bf1310c278
@ -63,11 +63,7 @@ class SystraceCollector(TraceCollector):
|
|||||||
[self.systrace_binary, '-l'], universal_newlines=True
|
[self.systrace_binary, '-l'], universal_newlines=True
|
||||||
).splitlines()
|
).splitlines()
|
||||||
|
|
||||||
categories = []
|
return [line.split()[0] for line in lines if line]
|
||||||
for line in lines:
|
|
||||||
categories.append(line.split()[0])
|
|
||||||
|
|
||||||
return categories
|
|
||||||
|
|
||||||
def __init__(self, target,
|
def __init__(self, target,
|
||||||
categories=None,
|
categories=None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user