perf report: setup elide when siwtch to another event in by tab key
PATCH 1/1 perf report: setup elide when siwtch to another event in by tab key
From: Changbin Du <[email protected]>
When we zoom into a column, that column is elided. But this should apply to another event browser window after event switch by tab key. We need setup elide corresponding to new event.
Signed-off-by Changbin Du <[email protected]>
--- tools/perf/ui/browsers/hists.c | 5 +++++ 1 file changed, 5 insertions(+)
tools/perf/ui/browsers/hists.c +5 -0
@@ -2846,6 +2846,11 @@ static int perf_evsel__hists_browse(struct perf_evlist *evlist, struct perf_evseif (browser ==NULL )return -1 ; +/* setup elide in case we are siwtching to another event in by tab */ +perf_hpp__set_elide (HISTC_DSO , hists->dso_filter); +perf_hpp__set_elide (HISTC_SOCKET , hists->socket_filter); +perf_hpp__set_elide (HISTC_THREAD , hists->thread_filter); +/* reset abort key so that it can get Ctrl-C as a key */ SLang_reset_tty ();SLang_init_tty (0 ,0 ,0 );
Signature · 1 line
2.7.4