[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.
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)
$(SDE_INC) \
$(REGEX_INC) $(MPATROL_INC) $(OGR_INC) $(GDAL_INC) $(POSTGIS_INC)
$(MYGIS_INC) \
$(CURL_INC) $(MING_INC) $(ORACLESPATIAL_INC)
Regards,
Pete.
>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
>
>
>Hi,
>
>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
>office.
>
>What are you using mapserver for?
>
>Alan
>
>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?
>>
>>Regards,
>>
>>Pete.
>>
>>_________________________________________________________________
>>Tired of spam? Get advanced junk mail protection with MSN 8.
>>http://join.msn.com/?page=features/junkmail
>>
>>_______________________________________________
>>Mapserver-dev mailing list
>>Mapserver-dev at lists.gis.umn.edu
>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
>----------------
>Alan Steremberg
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the mapserver-dev
mailing list