From c26fa209e329d7bfbc853c0b99c6aef0b98041dc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 11 Dec 2012 12:22:56 -0800 Subject: Show CNS value in the profile mouseover If we have per-sample CNS values, then show them in the profile tooltip. Signed-off-by: Dirk Hohndel --- profile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profile.c b/profile.c index 1d0ec38e2..24b9523fd 100644 --- a/profile.c +++ b/profile.c @@ -1922,6 +1922,10 @@ static void plot_string(struct plot_data *entry, char *buf, size_t bufsize, memcpy(buf2, buf, bufsize); snprintf(buf, bufsize, "%s\nNDL:%umin", buf2, entry->ndl / 60); } + if (entry->cns) { + memcpy(buf2, buf, bufsize); + snprintf(buf, bufsize, "%s\nCNS:%u%%", buf2, entry->cns); + } if (prefs.pp_graphs.po2) { memcpy(buf2, buf, bufsize); snprintf(buf, bufsize, "%s\npO" UTF8_SUBSCRIPT_2 ":%.2f", buf2, entry->po2); -- cgit v1.2.3-70-g09d2