Skip to content

Commit 93e9420

Browse files
taloriclzf575
authored andcommitted
fix: add render time_us only for flamegraph render
1 parent 8ad99e5 commit 93e9420

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/app/application/l7_flow_tracing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3721,9 +3721,8 @@ def correct_span_time(flows: dict, host_clock_correction: dict,
37213721
# should verify `agent` by instance_to_agent record by Ebpf/Packet signal source
37223722
agent_id = instance_to_agent.get(flow['auto_instance'],
37233723
flow['vtap_id'])
3724-
if host_clock_correction.get(agent_id, 0) != 0:
3725-
flow['start_time_us'] += host_clock_correction[agent_id]
3726-
flow['end_time_us'] += host_clock_correction[agent_id]
3724+
flow['render_start_time_us'] = flow['start_time_us'] + host_clock_correction.get(agent_id, 0)
3725+
flow['render_end_time_us'] = flow['end_time_us'] + host_clock_correction.get(agent_id, 0)
37273726

37283727

37293728
def format_final_result(

0 commit comments

Comments
 (0)