summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index ce3dd81e3..bb55f5b15 100644
--- a/profile.c
+++ b/profile.c
@@ -400,7 +400,9 @@ static void plot_one_event(struct graphics_context *gc, struct plot_info *pi, st
snprintf(buffer, sizeof(buffer), "%s: %d", _(event->name), event->value);
}
} else {
- snprintf(buffer, sizeof(buffer), "%s", _(event->name));
+ snprintf(buffer, sizeof(buffer), "%s%s", _(event->name),
+ event->flags == SAMPLE_FLAGS_BEGIN ? " begin" :
+ event->flags == SAMPLE_FLAGS_END ? " end" : "");
}
attach_tooltip(x-15, y-6, 12, 12, buffer);
}