[openbeos] Re: Help with built-in profiling

Hi Stephan,

2006/11/27, Stephan Assmus <superstippi@xxxxxx>:
can someone here help me a bit to get on track with profiling? I have
successfully built the app_server in the test environment using the -pg GCC
switch. You have to provide an "mcount" function or link everything against
"/boot/develop/lib/x86/i386-mcount.o". The resulting executable runs very
slowly, so suppose something is happening. I tried using the "profile"
command, which supposedly spits out profiling information at the exit of
the programm that you run with it. But it just prints all the libraries
that the app_server links with when you invoke it and no further output
when I quit it. Has someone more insights? Can the "original" i386-mcount.o
even be used with the newer GCC?


Don't know if it's still valid but there was a newsletter about profiling :
http://web.archive.org/web/20060211202838/http://haiku-os.org/learn.php?mode=nsl_view&id=20#67

This newsletter is missing on the current website (might be an
oversight, might be an out of date article ...)

Bye,
Jérôme

Other related posts: