linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Milian Wolff <milian.wolff@kdab.com>
To: Taeung Song <treeze.taeung@gmail.com>
Cc: perf group <linux-perf-users@vger.kernel.org>
Subject: Re: What unit is used by "period" for sleep time profiling?
Date: Tue, 23 Feb 2016 20:29:34 +0100	[thread overview]
Message-ID: <2598992.ACoTVoLDcM@milian-kdab2> (raw)
In-Reply-To: <56CC9AB6.1080902@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]

On Wednesday, February 24, 2016 2:45:26 AM CET Taeung Song wrote:
> Hi, Milian
> 
> On 02/23/2016 11:08 PM, Milian Wolff wrote:
> > Hey all,
> > 
> > following the "profiling sleep times" steps on the perf wiki at [1], we
> > can
> > get some "Period" numbers. The wiki e.g. shows a number of "502408738".
> 
> AFAIK,
> When it comes to perf, "Period" means the number of occurrences
> of an event, not the number of timer ticks.
> 
> The period is raw number of event count of sample.
> 
> Perf can collect partial samples from a lot of event
> information(who/how much/when/etc.) or get all available samples.
> (of course, there are some limits using actual hardware counters)
> 
> For example,
> 
> # perf record -e cycles -c 1000 sleep 5
> 
> As above, if -c option is used,
> perf-record can collect a sample every 1000 occurrences
> of event 'cycles' for 5 seconds. (sampling period = 1000)

I know, but this does not apply to the sleep time profiling, does it?

-- 
Milian Wolff | milian.wolff@kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5903 bytes --]

      reply	other threads:[~2016-02-23 19:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23 14:08 What unit is used by "period" for sleep time profiling? Milian Wolff
2016-02-23 17:45 ` Taeung Song
2016-02-23 19:29   ` Milian Wolff [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=2598992.ACoTVoLDcM@milian-kdab2 \
    --to=milian.wolff@kdab.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=treeze.taeung@gmail.com \
    /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).