How to profile DLL built by Cygwin

Mark Geisert
Wed Mar 30 20:16:00 GMT 2016

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.


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list