Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites - Mailing list pgsql-patches

From Tom Lane
Subject Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites
Date
Msg-id 12132.1170309580@sss.pgh.pa.us
Whole thread Raw
In response to Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites  (Mark Kirkwood <markir@paradise.net.nz>)
Responses Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites
Re: [pgsql-patches] Patch to avoid gprofprofilingoverwrites
List pgsql-patches
Mark Kirkwood <markir@paradise.net.nz> writes:
> Right - but LINUX_PROFILE was added to correct Linux specific oddities
> with the time counter accumulation, whereas your patch is not Linux
> specific at all. So I think a more representative symbol is required.

Yeah, that was my problem with the patch too.  The issue that it's
addressing isn't Linux-specific in the least.

Is there a way to detect via #if that profiling is enabled?  I wouldn't
expect a really portable answer, but maybe there's something that works
for gcc?

            regards, tom lane

pgsql-patches by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites
Next
From: Neil Conway
Date:
Subject: Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites