Profiling C application
Andrea Venturoli
ml at netfence.it
Sun Nov 29 09:56:06 UTC 2020
On 11/28/20 8:22 PM, Scott Bennett via freebsd-questions wrote:
> I see you already have one response at least to your question, but
> perhaps a simpler one is to use a now ancient BSD UNIX tool called gprof(1),
> along with the compiler option -pg. (See the gprof(1) man page for the
> details.) Note, too, that you may want to link your program to the profiling
> versions of system libraries as explained in the man page.
I didn't mention gprof because it stopped working when FreeBSD switched
from GCC to clang. Or, maybe, it was my fault, not being able to get it
working again.
That was a long time ago, however; if nowadays it's a viable solution,
I'm happy to hear this.
bye & Thanks
av.
More information about the freebsd-questions
mailing list