Re: That EXPLAIN ANALYZE patch still needs work

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: That EXPLAIN ANALYZE patch still needs work
Дата
Msg-id 23337.1149628639@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: That EXPLAIN ANALYZE patch still needs work  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-hackers
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> If that's the case, then maybe a more sopdisticated method of measuring
> the overhead would work.

I think you missed the point: the time spent in gettimeofday() itself
is not the major overhead of EXPLAIN ANALYZE.  At least it appears that
this is the case on my machine.

I'm thinking that interrupt-driven sampling might work OK though.
My previous worries were based on trying to use the ITIMER_PROF
timer, which might not be portable and would conflict with gprof
anyway.  But EXPLAIN ANALYZE has always been interested in real time
rather than CPU time, so the correct interrupt to use is ITIMER_REAL.
That means we only have to share with our own existing usages of that
interrupt, which turns it from a portability issue into just a Small
Matter Of Programming.
        regards, tom lane


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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: That EXPLAIN ANALYZE patch still needs work
Следующее
От: Zoltan Boszormenyi
Дата:
Сообщение: SERIAL problems?