[Mapserver-dev] How can i profiling MapServer source code by using gprof

pete skywalker pete_sky at hotmail.com
Mon Jan 5 12:08:45 EST 2004

Dear Alan,

I already edit cflag in the makefile with -pg option but it's not work.
When i try to make, I get a message

  make: Noting to be done for 'all'.

What's wrong?

Below is the cflag statement that i edit in my makefile.

        $(ORACLESPATIAL) $(TIFF) $(JPEG) $(GD) $(PDF) $(SDE) $(OGR) $(GDAL) 
        $(POSTGIS) $(MYGIS) $(MPATROL) $(THREAD) \
$(SDE_INC) \



>From: Alan Steremberg <alans at wunderground.com>
>Reply-To: Alan Steremberg <alans at wunderground.com>
>To: pete skywalker <pete_sky at hotmail.com>
>Subject: Re: [Mapserver-dev] How can i profiling MapServer source code by 
>using gprof
>Date: Sat, 3 Jan 2004 21:22:15 -0800
>I have run it through gprof as well as putting in a bunch of timing calls.. 
>You want to just get it compiling and running, then replace part of the 
>cflags in the makefile..  Take out the O3 or whatever it is and replace it 
>with -pg
>Then run shp2img, it is the easiest way to deal with it...  I put in a 
>bunch of speed fixes by profiling it.  Right now the biggest things that 
>bother me are:
>- truetype drawing speeds
>- shapefile reading/dealing
>- gd drawing
>Profile the latest version in cvs because it has a couple of key speedups 
>in it.
>Let me know if you have any trouble, I can help you when I get back in the 
>What are you using mapserver for?
>On Thu, 1 Jan 2004 10:18am, pete skywalker wrote:
>>Dear All,
>>I'm testing MapServer programatic flow now. I follow source code by using 
>>GDB debugging (compile MapServer source code with  --enable-debug). I plan 
>>to use gprof to test time that each function consume during run time. How 
>>can I compile MapServer source code with option -pg?
>>Tired of spam? Get advanced junk mail protection with MSN 8. 
>>Mapserver-dev mailing list
>>Mapserver-dev at lists.gis.umn.edu
>Alan Steremberg

The new MSN 8: advanced junk mail protection and 2 months FREE* 

More information about the mapserver-dev mailing list