This is the mail archive of the
mailing list for the Cygwin project.
Re: How to profile DLL built by Cygwin
- From: Mark Geisert <mark at maxrnd dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 30 Mar 2016 13:16:13 -0700
- Subject: Re: How to profile DLL built by Cygwin
- Authentication-results: sourceware.org; auth=none
- References: <CAM6w8J64zyAFJjrVk7sYR+TR0gcP00QopU_uNTzBzWEHb9abqA at mail dot gmail dot com>
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: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple