tools: in performance-log-expand.py, preserve threads with empty stacks

... which can be present in logs since last commit.
This commit is contained in:
Ell
2018-11-07 13:57:56 -05:00
parent eec1e1f189
commit fb95d3b86e

View File

@ -84,7 +84,7 @@ for sample in (log.find ("samples") or empty_element).iterfind ("sample"):
last_thread[0] = attrib
last_thread[1] = frames
if not frames:
if not frames and thread.text is None:
del last_backtrace[id]
for thread in list (backtrace):