From: Tom Lane <tgl@sss.pgh.pa.us>
To: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: pgsql-hackers-win32@postgresql.org
Subject: Re: profiling on win32
Date: Fri, 26 Aug 2005 00:45:52 -0400
Message-ID: <5422.1125031552@sss.pgh.pa.us> (raw)
In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3417DD1E0@Herge.rcsinc.local>
References: <6EE64EF3AB31D5448D0007DD34EEB3417DD1E0@Herge.rcsinc.local>
"Merlin Moncure" <merlin.moncure@rcsonline.com> writes:
> 4. to compile postgresql for profiling (assumes you already have mingw,
> etc. installed).
> a. do make clean, make, and make install as normal.
> b. edit makefile.global and add -pg to the end of cflags line.
> c. do make clean, and make, and make install of just the backend. you
> can do this by running make from backend folder.
You shouldn't have to touch Makefile.global; there's a parameter built
into the makefiles for this. Just do
cd .../src/backend
make clean
make PROFILE="-pg" all
(Quoting syntax might be different on Windows, but as long as it's
GNU make I'd expect this to work.)
I tend to abuse the PROFILE option for any old random compile/link flags
I'd like to add to a particular build ...
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers-win32@postgresql.org
Cc: tgl@sss.pgh.pa.us, merlin.moncure@rcsonline.com
Subject: Re: profiling on win32
In-Reply-To: <5422.1125031552@sss.pgh.pa.us>
References: <6EE64EF3AB31D5448D0007DD34EEB3417DD1E0@Herge.rcsinc.local> <5422.1125031552@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