Fix reporting of profiler traces with multiple toplevels
The Profiler panel was only showing the first of potentally many toplevel events in a request. This patch reinstates those events by displaying the root event rather than its first child. Change-Id: Ifeb0c3ee16168335e7b41c1063897ccdf5511800 Closes-Bug: 1660449
This commit is contained in:
parent
94a47461c0
commit
d256d0025f
@ -105,9 +105,7 @@ def get_trace(request, trace_id):
|
||||
|
||||
engine = _get_engine(request)
|
||||
trace = engine.get_report(trace_id)
|
||||
# NOTE(tsufiev): throw away toplevel node which is dummy and doesn't
|
||||
# contain any info, use its first and only child as the toplevel node
|
||||
data, max_finished = rec(trace['children'][0])
|
||||
data, max_finished = rec(trace)
|
||||
data['info']['max_finished'] = max_finished
|
||||
return data
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user