Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301910

Re: [RFC/PATCH] perf report: Show random usage tip on the help line

From Namhyung Kim <namhyung@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFC/PATCH] perf report: Show random usage tip on the help line
Date 2016-01-05 20:30 +0100
Message-ID <qNFsS-7fR-9@gated-at.bofh.it> (permalink)
References <qNsvE-5OP-5@gated-at.bofh.it> <qNtrI-6yZ-7@gated-at.bofh.it> <qNxlD-Sz-5@gated-at.bofh.it> <qNCY3-5qN-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Arnaldo,

On Tue, Jan 05, 2016 at 01:40:10PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Tue, Jan 05, 2016 at 07:43:07PM +0900, Namhyung Kim escreveu:
> > Hi,
> > 
> > On Tue, Jan 05, 2016 at 02:32:47PM +0800, Wangnan (F) wrote:
> > > 
> > > 
> > > On 2016/1/5 13:36, Namhyung Kim wrote:
> > > >Currently perf report only shows a help message "For a higher level
> > > >overview, try: perf report --sort comm,dso" unconditionally (even if
> > > >the sort keys were used).  Add more help tips and show randomly.
> > > >
> > > >Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> > > >---
> > > 
> > > That's really funny.
> > 
> > Thanks for your feedback!
> 
> :-)
>  
> > > 
> > > Some inconvenience:
> > > 
> > >  1. Tip is never change during one execution of 'perf report', even if
> > >     I switch to another view using 'enter' and switch back. It should better
> > >     if tips updated when redrawing.
> > 
> > Hmm.. I think it's a preference.  I'd go for simplicity then. :)
> 
> Yeah, that can be easily done on top, after we get some more tips in.

Right.

>  
> > >  2. I think add a "Tip: " prefix to the content should be better, or users
> > > may confuse what he/her doing causes this message
> > 
> > OK.
> > 
> > > 
> > >  3. What about creating a tools/perf/Documentation/tips.txt and generate
> > > tips table dynamically?
> > 
> > I don't see much difference doing that.  I guess most of users don't
> > want to go to see the documentation anyway.  Do I miss something?
> 
> Yes, I think what he suggests is to use:
> 
>   	tips = strlist__new("file://tools/perf/Documentation/tips.txt", NULL);
> 
> And then use:
> 
> 	tip = strlist__entry(tips, random() % strlist__nr_entries(tips));
> 
> 
> Or even do as 'perf trace' does, and have a directory with one file per
> tip, see 005438a8eef0 ("perf trace: Support 'strace' syscall event
> groups")

Thanks for the info.  It's really easy doing that, nice..

I understand what he suggesting, but not why. :)


>  
> > Btw, does anyone have some tips to add? :)
> 
> Lets get the mechanism right and then proof read the tips you provided
> :-)

OK

Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-05 06:40 +0100
  Re: [RFC/PATCH] perf report: Show random usage tip on the help line "Wangnan (F)" <wangnan0@huawei.com> - 2016-01-05 07:40 +0100
    Re: [RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-05 11:50 +0100
      Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-05 17:50 +0100
        Re: [RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-05 20:30 +0100
          Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-05 22:00 +0100
            Re: [RFC/PATCH] perf report: Show random usage tip on the help line Andi Kleen <andi@firstfloor.org> - 2016-01-05 22:00 +0100
              Re: [RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-06 00:30 +0100
                Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-06 02:50 +0100
      Re: [RFC/PATCH] perf report: Show random usage tip on the help line Andi Kleen <andi@firstfloor.org> - 2016-01-05 22:00 +0100
        Re: [RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-06 00:40 +0100
          Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-06 03:00 +0100
          Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-08 16:50 +0100

csiph-web