You might also look at OProfile (http://oprofile.sourceforge.net/).
There is an option in the oprofpp command to dump data OProfile collects
in gprof format.
-Will
J.A. Magallon wrote:
>
> On 03.11, Mikael Pettersson wrote:
>
>> Version 2.5.0 of perfctr, the Linux/x86 performance
>> monitoring counters driver, is now available at the usual
>> place: http://www.csd.uu.se/~mikpe/linux/perfctr/
>>
>
> Perhaps this has been asked for a million times, but I'm new to perfctrs...
> Is there any tool available to profile a program based on this ?
> I have seen perfex, but that gives total counts. I would like something
> like gprof... We are now optimizing some software and I would like to
> make my colleagues leave Windows (they use Intel's VTune) and go to
> Linux.
> Or at least compare the same kind of things between VTune on win and
> 'something' in Linux that also uses the counters. They don't seem to
> trust gprof. And, looking at the results, I'm beginning to untrust
> VTune...
>
> TIA
>