Messages in this thread | | | From | Namhyung Kim <> | Subject | Re: [RFC/PATCHSET 00/12] perf report: Add support to event group viewing (v1) | Date | Tue, 24 Jul 2012 18:13:00 +0900 |
| |
On Tue, 24 Jul 2012 18:01:21 +0900, Namhyung Kim wrote: > Hi all, > > This is a patchset to support event grouping on perf report. > > It depends on other patches like refactoring hist print [1], > processing file header feature [2] and (obviously) Jiri's event group > management [3]. All of this need to be reviewed though. ;) > > The basic idea is move group member's hist entries to a leader, and > sort/collapse them on the leader's tree. The leader will have all of > group members' stat in it. The output is sorted by the leader's period > and in turn first child and so on. > > To use it, 'perf record' should group events when recording. And then > perf report parses the saved command line and reconstruct the group > relation. Currently only the '-e { event1,event2 }' syntax is supported > (i.e. --group option is *NOT* supported) to make things easy. But it'd > not be that hard to support --group also. > > But I think re-using event parsing routine (at least, in its current > form) has some problems especially if perf report will not run on the > same machine that runs perf record. I cannot find a better way than > extending/changing the perf file format to let perf record know about
s/perf record/perf report/
Thanks, Namhyung
| |