Skip to contentSkip to conversation

perf c2c report: Iterate node display in browser

tip:perf/core tip-bot for Jiri Olsa 1 participant 1 message Oct 22, 2016 perf events

lore
Share & tools
lore

tip-bot for Jiri Olsa

author merge bot
#0 lore raw
Commit-ID:  1a56a42534da8f1d2faf8df99787833ce67e8fdb
Gitweb:     http://git.kernel.org/tip/1a56a42534da8f1d2faf8df99787833ce67e8fdb
Author:     Jiri Olsa <[email protected]>
AuthorDate: Sun, 10 Jul 2016 16:30:27 +0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Fri, 21 Oct 2016 10:32:00 -0300

perf c2c report: Iterate node display in browser

Adding TUI support to switch between Node entry versions in real time with 'n' key.

---
 tools/perf/builtin-c2c.c | 4 ++++
 1 file changed, 4 insertions(+)
tools/perf/builtin-c2c.c +4 -0
index 4645461..2059395 100644
@@ -2207,6 +2207,10 @@ static int perf_c2c__browse_cacheline(struct hist_entry *he)
 		case 's':
 			c2c.symbol_full = !c2c.symbol_full;
 			break;
+		case 'n':
+			c2c.node_info = (c2c.node_info + 1) % 3;
+			setup_nodes_header();
+			break;
 		case 'q':
 			goto out;
 		default: