All of lore.kernel.org
 help / color / mirror / Atom feed
From: Taeung Song <treeze.taeung@gmail.com>
To: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Milian Wolff <milian.wolff@kdab.com>, linux-perf-users@vger.kernel.org
Subject: Re: memory consumption information in perf stat?
Date: Thu, 4 Feb 2016 17:51:30 +0900	[thread overview]
Message-ID: <56B31112.3000701@gmail.com> (raw)
In-Reply-To: <53853116.DaB1LNLXKQ@milian-kdab2>

Hi, Brendan Gregg

I saw your website and your email in LKML
so I sent this mail that contain a question.
(Thanks for your perf example page http://www.brendangregg.com/perf.html )

Would you mind if I ask you a question about perf ?

I saw several questions that can be answered by 'perf' in perf example 
page. 'Which code-paths are allocating memory, and how much?' among 
them. How to get answer of this question ?

I used 'perf mem record/report' and
'perf record -e mem-loads,mem-stores' to get memory information
running my sample program.
But I don't know very well how much is allocated memory
because only mem-* events count or overhead(%), etc can be seen.

Are there another way to check memory consumption info by perf ?

(I looked into perf example page but I mightn't look for the contents 
for it in the page.)
(Sure, I used 'command time -v', 'ps' and other tools in linux
to know this information.)

And I added Cc linux-perf-users and Milian Wolff
because I think this can be related to the mail of Milian.

(If someone would reply, I'd appreciate it.)

Thanks,
Taeung

On 01/29/2016 02:11 AM, Milian Wolff wrote:
> Hey all,
>
> for user-space profiling, it would be extremely useful to get memory
> consumption information such as peak heap size into the output of perf stat.
> Is this doable? I just learned that `command time -v` is able to output the
> maximum and average RSS. It would be extremely nice if `perf stat` could
> incorporate that as well somehow such that I only need a single application to
> look at that.
>
> If this is doable, then feel free to guide me to the code and I'm willing to
> supply a patch for perf stat.
>
> Thanks
>

      parent reply	other threads:[~2016-02-04  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-28 17:11 memory consumption information in perf stat? Milian Wolff
2016-01-28 19:55 ` Manuel Selva
2016-01-29 12:30   ` Milian Wolff
2016-02-04  8:51 ` Taeung Song [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=56B31112.3000701@gmail.com \
    --to=treeze.taeung@gmail.com \
    --cc=brendan.d.gregg@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=milian.wolff@kdab.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.