Permalink
Browse files

Added ability to use TCMALLOC and PROFILER

.. from Google's PerfTools
  • Loading branch information...
1 parent 62ab09a commit f9707bd27277001a9d861fe05f56e3bf7ae85d8f Zack Moratto committed Feb 4, 2010
Showing with 25 additions and 21 deletions.
  1. +25 −21 configure.ac
View
@@ -249,6 +249,10 @@ dnl BLAS symbols in the event that we need them.
AX_PKG(ISIS3RDPARTY, [SUPERLU LAPACK GSL QWT GEOS SPICE XERCESC], [])
AX_PKG(ISIS, [QT ISIS3RDPARTY], [-lisis3], [SpecialPixel.h])
+# Additional Google PerfTools
+AX_PKG(TCMALLOC, [], [-ltcmalloc], [])
+AX_PKG(PROFILER, [], [-lprofiler], [])
+
# These are here (instead of inside the PKG macro where they belong)
# for backwards compatability with older versions of automake.
AM_CONDITIONAL(HAVE_PKG_SPICE, [test "$HAVE_PKG_SPICE" = "yes"])
@@ -263,27 +267,27 @@ AX_GROUP_PKG(BOOST_COMMON, [BOOST BOOST_PROGRAM_OPTIONS])
AX_GROUP_PKG(BOOST_ALL, [BOOST_COMMON BOOST_FILESYSTEM BOOST_SYSTEM BOOST_DATETIME BOOST_THREAD BOOST_IOSTREAMS])
AX_GROUP_PKG(VW_ALL, [VW VW_CAMERA VW_CARTOGRAPHY VW_STEREO VW_INTEREST_POINT])
-AX_MODULE(CORE, [src/asp/Core], [libaspCore.la], yes, [], [BOOST_COMMON BOOST_FILESYSTEM BOOST_SYSTEM BOOST_THREAD VW_ALL], [LAPACK])
-AX_MODULE(SPICEIO, [src/asp/SpiceIO], [libaspSpiceIO.la], yes, [], [VW BOOST SPICE], [] )
-AX_MODULE(ISISIO, [src/asp/IsisIO], [libaspIsisIO.la], yes, [], [BOOST ISIS VW VW_CAMERA VW_CARTOGRAPHY], [] )
-AX_MODULE(SESSIONS, [src/asp/Sessions], [libaspSessions.la], yes, [CORE], [], [SPICEIO ISISIO])
-
-AX_APP(STEREO, [src/asp/Tools], yes, [CORE SESSIONS])
-AX_APP(ORTHOPROJECT, [src/asp/Tools], yes, [CORE SESSIONS])
-AX_APP(BUNDLEADJUST, [src/asp/Tools], no, [CORE SESSIONS])
-AX_APP(ORBITVIZ, [src/asp/Tools], yes, [SESSIONS])
-AX_APP(DISPARITYDEBUG, [src/asp/Tools], yes, [BOOST_COMMON VW VW_STEREO])
-AX_APP(POINT2MESH, [src/asp/Tools], yes, [BOOST_COMMON VW OPENSCENEGRAPH])
-AX_APP(POINT2DEM, [src/asp/Tools], yes, [CORE])
-AX_APP(RMAX2CAHVOR, [src/asp/Tools], no, [SESSIONS])
-AX_APP(RMAXADJUST, [src/asp/Tools], no, [CORE SESSIONS])
-AX_APP(BUNDLEVIS, [src/asp/Tools], no, [BOOST_COMMON OPENSCENEGRAPH VW VW_CAMERA])
-AX_APP(ISISADJUST, [src/asp/Tools], yes, [CORE ISISIO])
-AX_APP(RESULTS, [src/asp/Tools], yes, [ISISIO])
-AX_APP(RECONSTRUCT, [src/asp/Tools], no, [BOOST_ALL VW VW_CARTOGRAPHY])
-AX_APP(ALIGNDEM, [src/asp/Tools], yes, [BOOST_COMMON VW VW_CARTOGRAPHY VW_INTEREST_POINT])
-AX_APP(GEODIFF, [src/asp/Tools], yes, [BOOST_COMMON VW VW_CARTOGRAPHY ISISIO])
-AX_APP(DEMPROFILE, [src/asp/Tools], yes, [VW VW_CARTOGRAPHY BOOST_COMMON])
+AX_MODULE(CORE, [src/asp/Core], [libaspCore.la], yes, [], [BOOST_COMMON BOOST_FILESYSTEM BOOST_SYSTEM BOOST_THREAD VW_ALL], [LAPACK TCMALLOC PROFILER])
+AX_MODULE(SPICEIO, [src/asp/SpiceIO], [libaspSpiceIO.la], yes, [], [VW BOOST SPICE], [TCMALLOC PROFILER] )
+AX_MODULE(ISISIO, [src/asp/IsisIO], [libaspIsisIO.la], yes, [], [BOOST ISIS VW VW_CAMERA VW_CARTOGRAPHY], [TCMALLOC PROFILER] )
+AX_MODULE(SESSIONS, [src/asp/Sessions], [libaspSessions.la], yes, [CORE], [], [SPICEIO ISISIO TCMALLOC PROFILER])
+
+AX_APP(STEREO, [src/asp/Tools], yes, [CORE SESSIONS], [TCMALLOC PROFILER])
+AX_APP(ORTHOPROJECT, [src/asp/Tools], yes, [CORE SESSIONS], [TCMALLOC PROFILER])
+AX_APP(BUNDLEADJUST, [src/asp/Tools], no, [CORE SESSIONS], [TCMALLOC PROFILER])
+AX_APP(ORBITVIZ, [src/asp/Tools], yes, [SESSIONS], [TCMALLOC PROFILER])
+AX_APP(DISPARITYDEBUG, [src/asp/Tools], yes, [BOOST_COMMON VW VW_STEREO], [TCMALLOC PROFILER])
+AX_APP(POINT2MESH, [src/asp/Tools], yes, [BOOST_COMMON VW OPENSCENEGRAPH], [TCMALLOC PROFILER])
+AX_APP(POINT2DEM, [src/asp/Tools], yes, [CORE], [TCMALLOC PROFILER])
+AX_APP(RMAX2CAHVOR, [src/asp/Tools], no, [SESSIONS], [TCMALLOC PROFILER])
+AX_APP(RMAXADJUST, [src/asp/Tools], no, [CORE SESSIONS], [TCMALLOC PROFILER])
+AX_APP(BUNDLEVIS, [src/asp/Tools], no, [BOOST_COMMON OPENSCENEGRAPH VW VW_CAMERA], [TCMALLOC PROFILER])
+AX_APP(ISISADJUST, [src/asp/Tools], yes, [CORE ISISIO], [TCMALLOC PROFILER])
+AX_APP(RESULTS, [src/asp/Tools], yes, [ISISIO], [TCMALLOC PROFILER])
+AX_APP(RECONSTRUCT, [src/asp/Tools], no, [BOOST_ALL VW VW_CARTOGRAPHY], [TCMALLOC PROFILER])
+AX_APP(ALIGNDEM, [src/asp/Tools], yes, [BOOST_COMMON VW VW_CARTOGRAPHY VW_INTEREST_POINT], [TCMALLOC PROFILER])
+AX_APP(GEODIFF, [src/asp/Tools], yes, [BOOST_COMMON VW VW_CARTOGRAPHY ISISIO], [TCMALLOC PROFILER])
+AX_APP(DEMPROFILE, [src/asp/Tools], yes, [VW VW_CARTOGRAPHY BOOST_COMMON], [TCMALLOC PROFILER])
# These are here (instead of inside the APP macro where they belong)
# for backwards compatability with older versions of automake.

0 comments on commit f9707bd

Please sign in to comment.