perf top: Show info message while collecting samples
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 19 Aug 2019 19:48:25 +0000 (16:48 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Aug 2019 15:22:39 +0000 (12:22 -0300)
Give visual cue about what is happening while initially collecting the
minimal set of samples to collect/sort/display.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-xcui60p1v6ozijfam2o89ya8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c

index b195b1ba625bb8db764a5aa9f4f9f1de4180c423..30547fdb078762bfd11c0858b31b384cd7e54b7e 100644 (file)
@@ -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;