Re: Tweaking a C Function I wrote

From: Neil Conway <neilc(at)samurai(dot)com>
To: Adam Palmblad <adam(at)aers(dot)ca>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Tweaking a C Function I wrote
Date: 2005-04-06 23:42:30
Message-ID: 425473E6.9080605@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alex Turner 2005-04-07 00:32:50 Re: How to improve db performance with $7K?
Previous Message Simon Riggs 2005-04-06 23:24:46 Re: Recognizing range constraints (was Re: Plan for