X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=QXTiAGRAEE+e1BEi
	8sLkCb4fsJPSMF7y4OsAYT+TluN2bstBNzjblPL+gs8+Ed/dle/B6duJxVO9xPhh
	0MZdWaRgt+NNjS9UlCzmTvegrSC+zNP1pqq9NZf9QNZdbdLVh5Ln2wivQ9XAgfp0
	4U90KXX2OKDPzfAP2Md61YgkMAk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=H5N8U5potCR1X9zDrqoHQB
	tiDX4=; b=GBiqwQ5VW2oqhHhwWtzij7WzliE4PTp3GF55BDAKstRtarRloy24h5
	D2YMj7e8ZBEbEUTzlGQlUyUkJlzfDWYnxQNYCGXvAh7W9Y/A4omHMVeSAc1laJCc
	QfjeFPQIM4X8qG4iq+ziwim8iwWSnUSZDnDi7vFLH9P9pCsVoae8U=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*r:ip*192.168.1.100, H*RU:!192.168.1.100!, Hx-spam-relays-external:!192.168.1.100!
X-HELO: m0.truegem.net
Subject: Re: How to profile DLL built by Cygwin
To: cygwin@cygwin.com
References: <CAM6w8J64zyAFJjrVk7sYR+TR0gcP00QopU_uNTzBzWEHb9abqA@mail.gmail.com>
From: Mark Geisert <mark@maxrnd.com>
Message-ID: <56FC340D.5050507@maxrnd.com>
Date: Wed, 30 Mar 2016 13:16:13 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39
MIME-Version: 1.0
In-Reply-To: <CAM6w8J64zyAFJjrVk7sYR+TR0gcP00QopU_uNTzBzWEHb9abqA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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

