John Smith wrote:
I have an executable using a DLL. The DLL is built using -g -pg.
Running the executable, however, does not produce a gmon.out. file.
Cygwin version is 1.7.33. Thanks in advance for any suggestions.

Cygwin's profiling facility currently only supports one address range: the address range of the executable's .text segment. DLLs live in other address ranges.

Currently the only way to profile DLL code on Cygwin is to temporarily make the DLL a static library, e.g. libfoo.a, and link it into the executable's build.
HTH,

..mark

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to