GNU bug report logs -
#3707
add a configure option to enable profiling
Previous Next
Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>
Date: Sun, 28 Jun 2009 21:50:03 UTC
Severity: normal
Done: Dan Nicolaescu <dann <at> ics.uci.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 3 Jul 2009 06:20:13 -0700 (PDT)
with message-id <200907031320.n63DKDhg027537 <at> godzilla.ics.uci.edu>
and subject line Re: bug#3707: add a configure option to enable profiling
has caused the Emacs bug report #3707,
regarding add a configure option to enable profiling
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)
--
3707: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3707
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Building emacs with profiling support is not very straight forward at
the moment.
It would be better if we had a configure option to do it:
./configure --enable-profiling
make
Adding the configure flag can be done like this:
--- configure.in.~1.600.~ 2009-06-26 18:46:22.000000000 -0700
+++ configure.in 2009-06-28 06:00:37.000000000 -0700
@@ -273,6 +273,18 @@ if test x$ac_gc_check_cons_list != x ; t
[Define this to check for errors in cons list.])
fi
+AC_ARG_ENABLE(profiling,
+[ --enable-profiling
+ Build emacs with profiling support],
+[ac_enable_profiling="${enableval}"],[])
+if test x$ac_enable_profiling != x ; then
+ PROFILING_CFLAGS="-DPROFLING -pg"
+ PROFILING_LDFLAGS="-pg"
+else
+ PROFILING_CFLAGS=
+ PROFILING_LDFLAGS=
+fi
+
#### Make srcdir absolute, if it isn't already. It's important to
#### avoid running the path through pwd unnecessarily, since pwd can
#### give you automounter prefixes, which can go away. We do all this
How can PROFILING_CFLAGS and PROFILING_LDFLAGS be added to the default
CFLAGS in the Makefile to enable "make" to just DTRT?
[Message part 3 (message/rfc822, inline)]
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> > Building emacs with profiling support is not very straight forward at
> > the moment.
> > It would be better if we had a configure option to do it:
>
> > ./configure --enable-profiling
> > make
>
> > Adding the configure flag can be done like this:
>
> Looks good, please install,
Thanks. Done.
This bug report was last modified 15 years and 350 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.