linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Comparing output of two perf cpu profiling reports
@ 2016-04-28 13:27 Mark Davis
  2016-04-28 13:30 ` Alex Bagehot
  2016-04-28 14:16 ` Arnaldo Carvalho de Melo
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Davis @ 2016-04-28 13:27 UTC (permalink / raw)
  To: linux-perf-users

Hi, what is the recommend way to compare two different perf reports
from CPU event profiling (via sampling with perf record)? I'm
comparing two macro benchmarks, with a couple small implementation
details between the two. Right now I'm manually comparing the output
of perf report to determine the salient differences. However, I'm
wondering if there's a tool or otherwise best practice to essentially
"diff" the two outputs. I could just use diff on the --stdio version
of the reports, but sometimes lines get mangled and I loose
context/hierarchy.

Any tips?

Mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Comparing output of two perf cpu profiling reports
  2016-04-28 13:27 Comparing output of two perf cpu profiling reports Mark Davis
@ 2016-04-28 13:30 ` Alex Bagehot
  2016-04-28 14:16 ` Arnaldo Carvalho de Melo
  1 sibling, 0 replies; 4+ messages in thread
From: Alex Bagehot @ 2016-04-28 13:30 UTC (permalink / raw)
  To: Mark Davis; +Cc: linux-perf-users

Hi Mark,

Differential flame graphs is one way:
http://www.brendangregg.com/blog/2014-11-09/differential-flame-graphs.html

Thanks,
Alex

On Thu, Apr 28, 2016 at 2:27 PM, Mark Davis <markdavisinboston@gmail.com> wrote:
> Hi, what is the recommend way to compare two different perf reports
> from CPU event profiling (via sampling with perf record)? I'm
> comparing two macro benchmarks, with a couple small implementation
> details between the two. Right now I'm manually comparing the output
> of perf report to determine the salient differences. However, I'm
> wondering if there's a tool or otherwise best practice to essentially
> "diff" the two outputs. I could just use diff on the --stdio version
> of the reports, but sometimes lines get mangled and I loose
> context/hierarchy.
>
> Any tips?
>
> Mark
> --
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Comparing output of two perf cpu profiling reports
  2016-04-28 13:27 Comparing output of two perf cpu profiling reports Mark Davis
  2016-04-28 13:30 ` Alex Bagehot
@ 2016-04-28 14:16 ` Arnaldo Carvalho de Melo
  2016-04-28 14:17   ` Mark Davis
  1 sibling, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-04-28 14:16 UTC (permalink / raw)
  To: Mark Davis; +Cc: linux-perf-users, Jiri Olsa, Namhyung Kim

Em Thu, Apr 28, 2016 at 09:27:07AM -0400, Mark Davis escreveu:
> Hi, what is the recommend way to compare two different perf reports
> from CPU event profiling (via sampling with perf record)?

> I'm comparing two macro benchmarks, with a couple small implementation
> details between the two.

> Right now I'm manually comparing the output of perf report to
> determine the salient differences.

> However, I'm wondering if there's a tool or otherwise best practice to
> essentially "diff" the two outputs.

> I could just use diff on the --stdio version of the reports, but
> sometimes lines get mangled and I loose context/hierarchy.

Can you try:

perf diff --help

- Arnaldo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Comparing output of two perf cpu profiling reports
  2016-04-28 14:16 ` Arnaldo Carvalho de Melo
@ 2016-04-28 14:17   ` Mark Davis
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Davis @ 2016-04-28 14:17 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linux-perf-users, Jiri Olsa, Namhyung Kim

Yeah, that would do it. Thanks to you both, Alex and Arnaldo!

On Thu, Apr 28, 2016 at 10:16 AM, Arnaldo Carvalho de Melo
<arnaldo.melo@gmail.com> wrote:
> Em Thu, Apr 28, 2016 at 09:27:07AM -0400, Mark Davis escreveu:
>> Hi, what is the recommend way to compare two different perf reports
>> from CPU event profiling (via sampling with perf record)?
>
>> I'm comparing two macro benchmarks, with a couple small implementation
>> details between the two.
>
>> Right now I'm manually comparing the output of perf report to
>> determine the salient differences.
>
>> However, I'm wondering if there's a tool or otherwise best practice to
>> essentially "diff" the two outputs.
>
>> I could just use diff on the --stdio version of the reports, but
>> sometimes lines get mangled and I loose context/hierarchy.
>
> Can you try:
>
> perf diff --help
>
> - Arnaldo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-28 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 13:27 Comparing output of two perf cpu profiling reports Mark Davis
2016-04-28 13:30 ` Alex Bagehot
2016-04-28 14:16 ` Arnaldo Carvalho de Melo
2016-04-28 14:17   ` Mark Davis

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).