From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dimitris Karampinas <dkarampin@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Profiling PostgreSQL
Date: Thu, 22 May 2014 09:48:52 -0400
Message-ID: <3712.1400766532@sss.pgh.pa.us> (raw)
In-Reply-To: <CAC_Q3NwxzpZ41iByo8PKvROT4BbZRedCuJZGBVFsg-iGvCivFg@mail.gmail.com>
References: <CAC_Q3NwxzpZ41iByo8PKvROT4BbZRedCuJZGBVFsg-iGvCivFg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Dimitris Karampinas <dkarampin@gmail.com> writes:
> Is there any way to get the call stack of a function when profiling
> PostgreSQL with perf ?
> I configured with --enable-debug, I run a benchmark against the system and
> I'm able to identify a bottleneck.
> 40% of the time is spent on an spinlock yet I cannot find out the codepath
> that gets me there.
> Using --call-graph with perf record didn't seem to help.
Call graph data usually isn't trustworthy unless you built the program
with -fno-omit-frame-pointer ...
regards, tom lane
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
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: tgl@sss.pgh.pa.us, dkarampin@gmail.com
Subject: Re: Profiling PostgreSQL
In-Reply-To: <3712.1400766532@sss.pgh.pa.us>
* 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