From: Frederic Weisbecker <fweisbec@gmail.com>
To: Christoph Bartoschek <bartoschek@gmx.de>
Cc: linux-perf-users@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@redhat.com>
Subject: Re: Profiling a program's runtime
Date: Fri, 4 Feb 2011 18:47:52 +0100 [thread overview]
Message-ID: <20110204174750.GD1808@nowhere> (raw)
In-Reply-To: <6cqt18-1lh.ln1@burns.bruehl.pontohonk.de>
On Fri, Feb 04, 2011 at 06:41:57PM +0100, Christoph Bartoschek wrote:
> Frederic Weisbecker wrote:
>
> >
> > If I understood you well, you make a difference between:
> >
> > - profiling only the code executed by your task
> > - profiling any code executed while your task was existing,
> > which includes what happens on other CPUs and other tasks that
> > may share the same CPU? Everything in fact?
> >
> > So for the case, you just launch:
> >
> > perf record -g my_task
> >
> > For the second case, use -a for system wide profiling while
> > your task exists:
> >
> > ./perf record -a -g my_task
>
> I am not interessted in code that is executed in other processes while my
> task exists.
>
> I want that not only the CPU time is counted that my task uses, but also the
> time my task waits.
The time your task waits, other tasks executes :-/ (including idle in the scheme)
> For example, if my task waits for network packets in a read() then the time
> should be added to the read() function. Other profilers I know would not
> count the time when the process is blocked.
What do you mean by adding time to read?
I'm very confused with what you want.
next prev parent reply other threads:[~2011-02-04 17:52 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 [this message]
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
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=20110204174750.GD1808@nowhere \
--to=fweisbec@gmail.com \
--cc=acme@redhat.com \
--cc=bartoschek@gmx.de \
--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.