All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: Peipei Wang <wangpeipei.90@gmail.com>
Cc: perf group <linux-perf-users@vger.kernel.org>
Subject: Re: How can I write a script and use perf script to process the record data periodically
Date: Thu, 15 Aug 2013 10:58:18 -0600	[thread overview]
Message-ID: <520D08AA.9000605@gmail.com> (raw)
In-Reply-To: <CAEuYUep7Ph+QnOonkvEAropiUqCFV9e-DT9ygcP7LDNEyV6SMQ@mail.gmail.com>

On 8/14/13 3:19 PM, Peipei Wang wrote:
> Hi all,
>
> I want to use perf script to process the data sampled by "perf record"
> since it is huge overhead to just write down all the samples.
> Processing the samples every minute is what I am desperate to do.

I don't follow what you are trying to do. perf-script can pretty print 
each sample -- time, cpu, task, pid/tid, etc (that option of perf-script 
is really a misnomer and this should be a perf-dump command).

 From there you want to process the samples?

If you know perl or python take a look at the scripts in 
tools/perf/scripts/python. I have not written external scripts, so can't 
offer any suggestions for you.

David

  reply	other threads:[~2013-08-15 16:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14 21:19 How can I write a script and use perf script to process the record data periodically Peipei Wang
2013-08-15 16:58 ` David Ahern [this message]
2013-08-15 21:19   ` Peipei Wang

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=520D08AA.9000605@gmail.com \
    --to=dsahern@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=wangpeipei.90@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 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.