Profiling a dlopened library

Charles Swiger cswiger at mac.com
Thu Apr 18 19:41:10 UTC 2013


Hi--

On Apr 18, 2013, at 11:21 AM, Niklaus <niklaus at gmail.com> wrote:
>    How do i profile a library which is dlopened from an executable.
> The executable and the library are compiled with -g using gcc . Can
> somone tell me tool that would profile it at runtime.

For gprof-style profiling, you'll need to build with -pg in addition.

Regards,
-- 
-Chuck



More information about the freebsd-questions mailing list