From: Christoph Bartoschek <bartoschek@gmx.de>
To: David Ahern <daahern@cisco.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: Profiling a program's runtime
Date: Fri, 4 Feb 2011 20:51:21 +0100 [thread overview]
Message-ID: <201102042051.21617.bartoschek@gmx.de> (raw)
In-Reply-To: <4D4C4105.3050002@cisco.com>
Am Freitag 04 Februar 2011 schrieb David Ahern:
> You can determine time blocked on read (and other system calls) by
> acquiring all context switches:
>
> perf record -e cs -c 1 -a
>
> From there you'll want to generate a time history output. To use
> unmodified perf code use the -D option to dump raw samples (perf report
> -D). You can find the process of interest and the kernel timestamp
> between schedule out events -- and the sched out event before your
> process. Together you can piece together the time you blocked on read.
>
> Alternatively, there are add-on patches which dump the timehistory in a
> pretty print format:
>
> http://www.mail-archive.com/linux-perf-users@vger.kernel.org/msg00049.html
> http://www.mail-archive.com/linux-perf-users@vger.kernel.org/msg00047.html
> http://www.mail-archive.com/linux-perf-users@vger.kernel.org/msg00048.html
>
>
> That output can be manipulated much easier to determine time on the
> processor and time between schedule-in events.
>
> Not the complete picture of what I think you are looking for -- but a
> way to get the time blocked on syscall stats via perf.
Looks quite complicated to get such a profile. However I have to check it,
when I'm back at work.
Thanks
Christoph
next prev parent reply other threads:[~2011-02-04 19:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-04 14:38 Profiling a program's runtime Christoph Bartoschek
2011-02-04 17:16 ` Frederic Weisbecker
2011-02-04 17:41 ` Christoph Bartoschek
2011-02-04 17:47 ` Frederic Weisbecker
2011-02-04 18:10 ` David Ahern
2011-02-04 18:33 ` Maucci, Cyrille
2011-02-04 19:48 ` Christoph Bartoschek
2011-02-04 19:57 ` Maucci, Cyrille
2011-02-07 20:38 ` Arnaldo Carvalho de Melo
2011-02-04 19:51 ` Christoph Bartoschek [this message]
2011-02-05 0:56 ` David Ahern
2011-02-04 19:24 ` Christoph Bartoschek
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=201102042051.21617.bartoschek@gmx.de \
--to=bartoschek@gmx.de \
--cc=daahern@cisco.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.