| From: | Jan Wieck <janwieck(at)yahoo(dot)com> |
|---|---|
| To: | PostgreSQL HACKERS <pgsql-hackers(at)postgreSQL(dot)org> |
| Subject: | Profiling under Linux |
| Date: | 2001-12-06 15:04:30 |
| Message-ID: | 200112061504.fB6F4Vd02648@saturn.jw.home |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
I had the same problem with gprof(1) that all the timing
information is zero. Today I found out what's going on.
Under Linux fork(2) resets the ITIMER_PROF. Getting the
itimer before the fork(2) with getitimer(2) and if pid==0
setting it with setitimer(2) to what it was makes profiling
work.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephan Szabo | 2001-12-06 15:59:10 | Re: pg_dump: Sorted output, referential integrity statements |
| Previous Message | Laszlo Hornyak | 2001-12-06 14:23:39 | Re: [GENERAL] java stored procedures |