| От | Andres Freund |
|---|---|
| Тема | Re: Additional LWLOCK_STATS statistics |
| Дата | |
| Msg-id | 20150916162627.GF2086@alap3.anarazel.de обсуждение исходный текст |
| Ответ на | Re: Additional LWLOCK_STATS statistics (Jesper Pedersen <jesper.pedersen@redhat.com>) |
| Ответы |
Re: Additional LWLOCK_STATS statistics
|
| Список | pgsql-hackers |
Hi, On 2015-09-16 10:37:43 -0400, Jesper Pedersen wrote: > #ifdef LWLOCK_STATS > lwstats->spin_delay_count += SpinLockAcquire(&lock->mutex); > + > + /* > + * We scan the list of waiters from the back in order to find > + * out how many of the same lock type are waiting for a lock. > + * Similar types have the potential to be groupped together. > + * Except for LW_WAIT_UNTIL_FREE there shouldn't be much in terms of grouping? Can't you instead iterate and count counter[waiter->lwWaitMode]++ or so? Greetings, Andres Freund
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера