Skip site navigation (1) Skip section navigation (2)

Re: profiling on win32

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: profiling on win32
Date: 2005-08-26 04:45:52
Message-ID: 5422.1125031552@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)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

In response to

pgsql-hackers-win32 by date

Next:From: Merlin MoncureDate: 2005-08-26 15:08:06
Subject: Re: profiling on win32
Previous:From: Dave PageDate: 2005-08-25 20:42:48
Subject: Re: profiling on win32

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group