Re: profiling on win32

Tom Lane <[email protected]> Fri, 26 Aug 2005 00:45:52 -0400
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
"Merlin Moncure" <[email protected]> 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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org