X-Original-To: pgsql-hackers-win32-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E3E23D6DA1 for ; Fri, 26 Aug 2005 01:45:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42337-05 for ; Fri, 26 Aug 2005 04:45:53 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2C71ED6D7B for ; Fri, 26 Aug 2005 01:45:52 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7Q4jq5H005423; Fri, 26 Aug 2005 00:45:52 -0400 (EDT) To: "Merlin Moncure" Cc: pgsql-hackers-win32@postgresql.org Subject: Re: profiling on win32 In-reply-to: <6EE64EF3AB31D5448D0007DD34EEB3417DD1E0@Herge.rcsinc.local> References: <6EE64EF3AB31D5448D0007DD34EEB3417DD1E0@Herge.rcsinc.local> Comments: In-reply-to "Merlin Moncure" message dated "Thu, 25 Aug 2005 16:35:55 -0400" Date: Fri, 26 Aug 2005 00:45:52 -0400 Message-ID: <5422.1125031552@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/53 X-Sequence-Number: 3365 "Merlin Moncure" 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