linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Milian Wolff <mail@milianw.de>
To: linux-perf-users@vger.kernel.org
Subject: task-clock vs. cpu-clock; per-event documentation
Date: Wed, 05 Aug 2015 14:55:11 +0200	[thread overview]
Message-ID: <1472439.mytDSkIAAG@milian-kdab2> (raw)

Hello all,

I was asked by a colleague of mine what the difference between task-clock and 
cpu-clock is. I found many similar questions on the web, but none have a final 
answer:

http://stackoverflow.com/questions/23965363/linux-perf-events-cpu-clock-and-task-clock-what-is-the-difference
https://lkml.org/lkml/2010/11/3/373

Could someone explain the difference between the two counters for a non-kernel 
person? What is a task for that matter? When I compare the counters on test 
applications, they deviate only marginally.

In general, is there hope for more documentation on the individual performance 
counters? Perf list shows what's available but has no information whatsoever 
about the actual meaning of the counters. It would be excellent to also 
explain how to interpret the counter, or in what case you'd want to look at a 
given event.

Thanks
-- 
Milian Wolff
mail@milianw.de
http://milianw.de

             reply	other threads:[~2015-08-05 12:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 12:55 Milian Wolff [this message]
2015-08-05 13:07 ` task-clock vs. cpu-clock; per-event documentation Andreas Hollmann
2015-08-05 13:38   ` Milian Wolff

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=1472439.mytDSkIAAG@milian-kdab2 \
    --to=mail@milianw.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 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).