Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2013 11:35:59 -0700
From:      Charles Swiger <cswiger@mac.com>
To:        Niklaus <niklaus@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: Profiling a dlopened library
Message-ID:  <8B2E2C65-06B2-48A4-8C9E-32D07109111A@mac.com>
In-Reply-To: <CAN%2By=1GOJuvC8-Sae6thoUE%2BDuRgLYNVY4RoNmu_xPQBGHzhsA@mail.gmail.com>
References:  <CAN%2By=1GOJuvC8-Sae6thoUE%2BDuRgLYNVY4RoNmu_xPQBGHzhsA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi--

On Apr 18, 2013, at 11:21 AM, Niklaus <niklaus@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8B2E2C65-06B2-48A4-8C9E-32D07109111A>