adding support for google performance tools to the build sytem, it can be enabled...
authorDejan Jovanović <dejan.jovanovic@gmail.com>
Mon, 14 Mar 2011 22:14:47 +0000 (22:14 +0000)
committerDejan Jovanović <dejan.jovanovic@gmail.com>
Mon, 14 Mar 2011 22:14:47 +0000 (22:14 +0000)
commit1bdb81e52c7865f89663f97f6bc1244f3e4f6b12
treeebeeca54b87984e7f35173232380de12d2d2acee
parent054455fe9b57a4f5df4702aaabcf77ca71d8e70a
adding support for google performance tools to the build sytem, it can be enabled at configure with
--with-google-perftools

to use it on ubuntu, you need to install packages google-perftools and libgoogle-perftools0

to run the profiling of the heap, you can run it for example with

HEAPPROFILE=/tmp/profile ./builds/bin/cvc4 test/regress/regress0/lemmas/clocksynchro_5clocks.main_invar.base.smt

this will create some files  /tmp/profile* that you can then

to get the pdf of the profile you can then run

google-pprof --pdf ./builds/bin/cvc4 /tmp/profile.0001.heap > profile.pdf

or for other options check http://goog-perftools.sourceforge.net/doc/
configure.ac