Re: Profiling PostgreSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dimitris Karampinas <dkarampin(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Profiling PostgreSQL
Date: 2014-05-22 13:48:52
Message-ID: 3712.1400766532@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Dimitris Karampinas <dkarampin(at)gmail(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Paquier 2014-05-22 23:39:26 Re: Profiling PostgreSQL
Previous Message David Boreham 2014-05-22 13:34:36 Re: Profiling PostgreSQL