Using OProfile

Поиск
Список
Период
Сортировка
От Reydan Cankur
Тема Using OProfile
Дата
Msg-id 1C850F4F-1AB2-4713-A378-6DF2255C5EE7@gmail.com
обсуждение исходный текст
Ответы Re: Using OProfile  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Hi,

I tried to profile postgresql queries with OProfile but I could not do. 
OProfile version: 0.9.5
PostgreSQL version: 8.4.0
OS: CentOS 5

I compiled OProfile with "./configure --with-kernel-support", "make" and "make install"; also I created a user and a group both named as "oprofile". User oprofile's default group is oprofile.

PostgreSQL was installed, and there is a db named "test". I ran below commands with "reydan" user;

sudo opcontrol --init
sudo opcontrol --setup --no-vmlinux
mkdir opdeneme (for profile files)
sudo opcontrol --session-dir=/path/to/opdeneme
sudo opcontrol --start
sudo opcontrol --reset
psql -f deneme.sql test
sudo opcontrol --dump
sudo opcontrol --shutdown
opreport --long-filenames | more (after this command I get below error)
error: no sample files found: profile specification too strict ?
And I could not profile with oprofile, what is my fault, please advice..

content of deneme.sql:
"create table deneme1 as
select  sid,
             md5((sid*10)::text),
             ((substring(random()::text from 3 for 5))::int+10000) as a
from generate_series(1,1000000) sid;"

Regards,
--Reydan

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Performance problems with DISTINCT ON
Следующее
От: "Sgarbossa Domenico"
Дата:
Сообщение: Re: Performance problems with DISTINCT ON