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

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites
Дата
Msg-id 1170312040.12546.102.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
On Thu, 2007-02-01 at 00:59 -0500, Tom Lane wrote:
> 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?

What about a "--enable-gprof" (or "--enable-profiling"?) configure flag?
This could add the appropriate compiler flags to CFLAGS, enable
LINUX_PROFILE if on Linux, and enable the "gprof/pid" mkdir().

-Neil



В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites