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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites
Дата
Msg-id 17698.1170340395@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [pgsql-patches] Patch to avoid gprof profilingoverwrites  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: [pgsql-patches] Patch to avoid gprofprofilingoverwrites  (<korryd@enterprisedb.com>)
Список pgsql-patches
Peter Eisentraut <peter_e@gmx.net> writes:
> Neil Conway wrote:
>> 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().

> That would really only work for GCC, wouldn't it?

Well, yeah, but that's what many of us use anyway.  I would envision it
as adding $(PROFILE) to CFLAGS, and then there would be one place
to adjust "-pg" to something else for another compiler --- perhaps the
template files could be given a chance to change PROFILE to something
else.

            regards, tom lane

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

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