Skip to contentSkip to conversation

perf top: Show info message while collecting samples

tip: perf/core tip-bot2 for Arnaldo Carvalho de Melo 1 participant 1 message Aug 23, 2019 1 message not in the archive perf events

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

tip-bot2 for Arnaldo Carvalho de Melo

author merge bot Applied
#1 lore raw

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     5c959b6d8f9369e42a3cb0423bcce9ac069cee55
Gitweb:        https://git.kernel.org/tip/5c959b6d8f9369e42a3cb0423bcce9ac069cee55
Author:        Arnaldo Carvalho de Melo <[email protected]>
AuthorDate:    Mon, 19 Aug 2019 16:48:25 -03:00
Committer:     Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Tue, 20 Aug 2019 12:22:39 -03:00

perf top: Show info message while collecting samples

Give visual cue about what is happening while initially collecting the minimal set of samples to collect/sort/display.

---
 tools/perf/ui/browsers/hists.c | 3 +++
 1 file changed, 3 insertions(+)
tools/perf/ui/browsers/hists.c +3 -0
index b195b1b..30547fd 100644
@@ -2894,6 +2894,9 @@ static int perf_evsel__hists_browse(struct evsel *evsel, int nr_events,
 	if (symbol_conf.col_width_list_str)
 		perf_hpp__set_user_width(symbol_conf.col_width_list_str);
 
+	if (!is_report_browser(hbt))
+		browser->b.no_samples_msg = "Collecting samples...";
+
 	while (1) {
 		struct thread *thread = NULL;
 		struct map *map = NULL;