X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 13D875322D for ; Thu, 7 Apr 2005 00:42:41 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45404-05 for ; Wed, 6 Apr 2005 23:42:35 +0000 (GMT) Received: from mailbox.samurai.com (mailbox.samurai.com [205.207.28.82]) by svr1.postgresql.org (Postfix) with ESMTP id DC92E52A9A for ; Thu, 7 Apr 2005 00:42:34 +0100 (BST) Received: from localhost (mailbox.samurai.com [205.207.28.82]) by mailbox.samurai.com (Postfix) with ESMTP id 5556318CDB1; Wed, 6 Apr 2005 19:42:37 -0400 (EDT) Received: from mailbox.samurai.com ([205.207.28.82]) by localhost (mailbox.samurai.com [205.207.28.82]) (amavisd-new, port 10024) with LMTP id 89704-02-3; Wed, 6 Apr 2005 19:42:33 -0400 (EDT) Received: from [61.88.101.19] (unknown [61.88.101.19]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailbox.samurai.com (Postfix) with ESMTP id 260AB18CD13; Wed, 6 Apr 2005 19:42:32 -0400 (EDT) Message-ID: <425473E6.9080605@samurai.com> Date: Thu, 07 Apr 2005 09:42:30 +1000 From: Neil Conway User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam Palmblad Cc: "pgsql-performance@postgresql.org" Subject: Re: Tweaking a C Function I wrote References: <42546F53.1020300@aers.ca> In-Reply-To: <42546F53.1020300@aers.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailbox.samurai.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.028 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/134 X-Sequence-Number: 11531 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