From 1c4729414deba3bcacef6a5614e2ca04d069be3a Mon Sep 17 00:00:00 2001 From: Trivikram Reddy <127072883+trivikram-reddy1@users.noreply.github.com> Date: Mon, 28 Sep 2026 17:02:58 -0500 Subject: [PATCH] hex-scripts: show trace events smaller than 100nsec in perfetto (#29614) --- scripts/snapdragon/ggml-hexagon-trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/snapdragon/ggml-hexagon-trace.py b/scripts/snapdragon/ggml-hexagon-trace.py index 760eb57d9c..5241dca153 100755 --- a/scripts/snapdragon/ggml-hexagon-trace.py +++ b/scripts/snapdragon/ggml-hexagon-trace.py @@ -514,7 +514,7 @@ def generate_perfetto_trace(filtered_ops, trace_events, output_path): tm = time_mappers[dev] e['ts_ns'] = tm.cycle_to_ns(e['start_cyc']) dur_ns = tm.dur_cycles_to_ns(e['start_cyc'], e['end_cyc'] - e['start_cyc']) - e['dur_ns'] = max(dur_ns, 100) + e['dur_ns'] = max(dur_ns, 1) # Allocate slots (sub-tracks) to prevent overlaps on same virtual track active_slots = defaultdict(list)