From b8781e733c230a7a1ebf4c3e20ed0255cf048511 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 12 Sep 2024 13:07:51 -0700 Subject: [PATCH] flame-graph: trim off some whispies --- src/sysprof/sysprof-flame-graph.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sysprof/sysprof-flame-graph.c b/src/sysprof/sysprof-flame-graph.c index 659a3a19..79957bb5 100644 --- a/src/sysprof/sysprof-flame-graph.c +++ b/src/sysprof/sysprof-flame-graph.c @@ -269,6 +269,9 @@ sysprof_flame_graph_snapshot (GtkWidget *widget, rect->w / (double)G_MAXUINT16 * width, rect->h); + if (area.size.width < .25) + continue; + if (!highlight && graphene_rect_contains_point (&area, &point)) highlight = rect;