using gprof
Tristan Gingold
gingold@adacore.com
Thu May 7 08:57:00 GMT 2009
On May 7, 2009, at 9:56 AM, Matthias Hofmann wrote:
> Hi,
Hi,
> i am not sure if i am correct here, but i have a short question
> concerning
> the use and functionality of gprof:
>
> currently, i am trying to get gprof work within a special proprietary
> linux distribution for embedded systems. the software which i would
> like
> to profile is called and used by a proprietary framework (not open
> source). our software works as a shared library. i compiled and
> linked the
> library with gcc 4.1.2 using the "-pg" flags. after that i run the
> software on the robot, but there is no output and no error message
> from
> gprof. there is no problem with the writing rights of the working
> directory cause i run the framework as a root user.
>
> - does gprof support shared libraries?
No, gprof doesn't support shared libraries.
> - any ideas what i did wrong?
> - are there alternatives to gprof if there is no shared lib support?
There are many system profiler available, such as oprofile.
Tristan.
More information about the Binutils
mailing list