Re: [PERFORM] Building postmaster with Profiling Support WAS "Tweaking a C

2005-04-07 Thread Adam Palmblad
The recompile was done by the sysadmin, but I believe the flags are -pg -DLINUX_PROFILING for profiling, and -g for debug symbols. This leaves gmon.out files around, which you can then do a "gprof /usr/bin/postmaster gmon.out" to see whats going on. My problem is that this gives me data on what

Re: [PERFORM] Building postmaster with Profiling Support WAS "Tweaking a C Function I wrote"

2005-04-07 Thread Tom Lane
"Mohan, Ross" <[EMAIL PROTECTED]> writes: > Is compiling postmaster with profiling support just a flag > in the build/make? Or is there something more involved? cd .../src/backend make PROFILE="-pg -DLINUX_PROFILE" all reinstall binary You don't need -DLINUX_PROFILE if not on Linux, of course.