linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Speyer <dspeyer@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: Re: How to read the perf report output
Date: Tue, 21 Apr 2015 18:44:17 +0000 (UTC)	[thread overview]
Message-ID: <loom.20150421T203602-458@post.gmane.org> (raw)
In-Reply-To: CA+res+Qw26_URgzDGWOriDDqpc6G6tqqEYfHe-9nO1gonOzkWw@mail.gmail.com

My copy of perf doesn't do that, but from looking at some stacks, I think
the first percentage is time spent in that function *including* children and
the second is *excluding*.  For example, cpu_startup_entry calls
arch_cpu_idle, and the latter accounts for most of the former's run time, so
they both have high inclusive time but the former has very low exclusive.

You might find things clearer using perf script instead of perf report.  It
doesn't analyze, but just dumps the results in an easy-to-read format
(intended to be the input to a script you would write, hence the name, but
you can also read it by hand).  You may need to specify a format.  I
generally use:

  sudo perf script -f trace:tid,comm,time,event,trace,sym,ip,dso

      reply	other threads:[~2015-04-21 18:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17 10:52 How to read the perf report output Jack Wang
2015-04-21 18:44 ` Daniel Speyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20150421T203602-458@post.gmane.org \
    --to=dspeyer@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).