From: Neil Conway <neilc@samurai.com>
To: Adam Palmblad <adam@aers.ca>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Tweaking a C Function I wrote
Date: Thu, 07 Apr 2005 09:42:30 +1000
Message-ID: <425473E6.9080605@samurai.com> (raw)
In-Reply-To: <42546F53.1020300@aers.ca>
References: <42546F53.1020300@aers.ca>
Adam Palmblad wrote:
> can I actually look at the call tree that occurs when my function is
> being executed or will I be limited to viewing calls to functions in
> the postmaster binary?
You're the one with the gprof data, you tell us :)
It wouldn't surprise me if gprof didn't get profiling data for dlopen'ed
shared libraries (I haven't checked), but I think both oprofile and
callgrind should be able to.
(If you do decide to use gprof and you're on Linux, be sure to compile
Postgres with CFLAGS="-DLINUX_PROFILE", to get valid profiling data.)
-Neil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: neilc@samurai.com, adam@aers.ca
Subject: Re: Tweaking a C Function I wrote
In-Reply-To: <425473E6.9080605@samurai.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox