[Mapserver-dev] How can i profiling MapServer source code by using gprof
pete_sky at hotmail.com
Mon Jan 5 12:08:45 EST 2004
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'.
Below is the cflag statement that i edit in my makefile.
CFLAGS= -pg -O2 -Wall -DENABLE_STDERR_DEBUG \
$(IGNORE_MISSING_DATA) $(STRINGS) $(EPPL) $(PROJ) $(OWS) $(MING) \
$(ORACLESPATIAL) $(TIFF) $(JPEG) $(GD) $(PDF) $(SDE) $(OGR) $(GDAL)
$(POSTGIS) $(MYGIS) $(MPATROL) $(THREAD) \
$(GD_INC) $(PDF_INC) $(PROJ_INC) $(TIFF_INC) $(JPEG_INC) $(EGIS_INC)
$(REGEX_INC) $(MPATROL_INC) $(OGR_INC) $(GDAL_INC) $(POSTGIS_INC)
$(CURL_INC) $(MING_INC) $(ORACLESPATIAL_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
>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
>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
>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:
>>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
The new MSN 8: advanced junk mail protection and 2 months FREE*
More information about the mapserver-dev