Hi Hemendra, On Wed, 29 Oct 2014 02:03:36 +0000 (UTC), Hemendra Rawat wrote: > Hi, > > I'm new to perf. I want to use perf to collect cpu-cycles spent in > each function for a multi-threaded program (Nasa Parallel Bench > marks OpenMP version). > > I'm using following commands to record and analyze the data. > > # perf record -s --call-graph=dwarf ./my-program 10 > # perf report -T --call-graph=graph > > But the TUI interface that opens up doesn't give information on a > per thread basis. It's all aggregate event count for each function. > I'm not sure whether i'm recording the data in the wrong way or > I'm missing something in the interpretation of perf output. Can > someone help me with this ? Any help will be highly appreciated.
It seems only --stdio support the -T option (and recorded events have 'S' modifier?). What about using "perf report -s pid"? And I have a question to others: I always get confused with "perf record -s". It turns on the inherit_stat attribute, and what it does looks like sharing event value/stat with other tasks - but I maybe mis- understood something. Could anyone please explain it to me in more detail? Also it'd be better if the related man page also can be updated. Thanks, Namhyung -- To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
