Fix issues in latency parsing tool

pull/14253/head
yang-g 7 years ago
parent 29d1e504ee
commit 20ea5b8066
  1. 4
      tools/profiling/latency_profile/profile_analyzer.py

@ -122,7 +122,8 @@ class CallStackBuilder(object):
return True
return False
elif line_type == '.' or line_type == '!':
self.stk[-1].mark(line)
if self.stk:
self.stk[-1].mark(line)
return False
else:
raise Exception('Unknown line type: \'%s\'' % line_type)
@ -255,6 +256,7 @@ if args.fmt == 'html':
accounted_for = 0
for cs in call_stacks:
print >> out, '\n'
if args.fmt in BANNER:
print >> out, BANNER[args.fmt] % {
'count': cs.count,

Loading…
Cancel
Save