[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130124093907.GA24621@gmail.com>
Date: Thu, 24 Jan 2013 10:39:07 +0100
From: Ingo Molnar <mingo@...nel.org>
To: Stephane Eranian <eranian@...gle.com>
Cc: linux-kernel@...r.kernel.org, peterz@...radead.org, mingo@...e.hu,
ak@...ux.intel.com, acme@...hat.com, jolsa@...hat.com,
namhyung.kim@....com
Subject: Re: [PATCH v6 2/2] perf stat: add interval printing
* Stephane Eranian <eranian@...gle.com> wrote:
> This patch adds a new printing mode for perf stat.
> It allows internval printing. That means perf stat
s/rnv/rv
> can now print event deltas at regular time interval.
> This is useful to detect phases in programs.
>
> The -I option enables interval printing. It expects
> an interval duration in milliseconds. Minimum is
> 100ms. Once, activated perf stat prints events deltas
> since last printout. All modes are supported.
>
> $ perf stat -I 1000 -e cycles noploop 10
> noploop for 10 seconds
> # time counts events
> 1.000109853 2,388,560,546 cycles
> 2.000262846 2,393,332,358 cycles
> 3.000354131 2,393,176,537 cycles
> 4.000439503 2,393,203,790 cycles
> 5.000527075 2,393,167,675 cycles
> 6.000609052 2,393,203,670 cycles
> 7.000691082 2,393,175,678 cycles
Looks useful!
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists