[uClibc-cvs] uClibc/extra/Configs Config.in,1.16,1.17
Erik Andersen
andersen at codepoet.org
Mon Mar 3 20:58:51 UTC 2003
Update of /var/cvs/uClibc/extra/Configs
In directory winder:/tmp/cvs-serv13798/extra/Configs
Modified Files:
Config.in
Log Message:
Initial effort at adding profiling support.
Index: Config.in
===================================================================
RCS file: /var/cvs/uClibc/extra/Configs/Config.in,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Config.in 5 Feb 2003 07:45:34 -0000 1.16
+++ Config.in 3 Mar 2003 20:57:16 -0000 1.17
@@ -97,6 +97,43 @@
or dtors and want your binaries to be as small as possible, then
answer N.
+config UCLIBC_PROFILING
+ bool "Support gprof profiling"
+ default y
+ help
+ If you wish to build uClibc with support for application profiling
+ using the gprof tool, then you should enable this feature. Then in
+ addition to building uClibc with profiling support, you will also
+ need to recompile all your shared libraries with the profiling
+ enabled version of uClibc. To add profiling support to your
+ applications, you must compile things using the gcc options
+ "-fprofile-arcs -pg". Then when you run your applications, a
+ gmon.out file will be generated which can then be analyzed by
+ 'gprof'.
+
+ These exist a number of less invasive alternatives that do not
+ require your to specially instrument your application, and recompile
+ and relink everything.
+
+ Many people have had good results using the combination of Valgrind
+ to generate profiling information and KCachegrind for analysis:
+ http://developer.kde.org/~sewardj/
+ http://kcachegrind.sourceforge.net/
+
+ The OProfile system-wide profiler is another alternative:
+ http://oprofile.sourceforge.net/
+
+ Prospect is another alternative based on OProfile:
+ http://prospect.sourceforge.net/
+
+ And the Linux Trace Toolkit (LTT) is also a fine tool:
+ http://www.opersys.com/LTT/
+
+ If none of these tools do what you need, you can of course enable
+ this option, rebuild everything, and use 'gprof'. There is both a
+ size and performance penelty to profiling your applications this way,
+ so most people should answer N.
+
config UCLIBC_HAS_THREADS
bool "POSIX Threading Support"
default y
More information about the uClibc-cvs
mailing list