This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
reference:profiling [2014/01/03 15:45] – external edit 127.0.0.1 | user_guide:extend:profiling [2019/01/29 21:46] – external edit 127.0.0.1 |
---|
| |
A weak point of this methode is that also other information than your code is analyzed, as recompiling and the files which where execute by the start of | A weak point of this methode is that also other information than your code is analyzed, as recompiling and the files which where execute by the start of |
''polymake''. You can start your code as [[reference::callable|Callable Library]] to reduces this. | ''polymake''. You can start your code as [[:callable|Callable Library]] to reduces this. |
| |
| |
| |
==== using gprof ==== | ==== using gprof ==== |
Another way is using [[http://sourceware.org/binutils/docs/gprof/|gprof]]. To run this we start our code as [[reference::callable|Callable Library]] and have to install ''polymake'' again, this time compiling under the flags '-g', '-pg' and '-O2'. | Another way is using [[http://sourceware.org/binutils/docs/gprof/|gprof]]. To run this we start our code as [[:callable|Callable Library]] and have to install ''polymake'' again, this time compiling under the flags '-g', '-pg' and '-O2'. |
| |
You can change compiler flags in the file '/build.x86_64/conf.make'. | You can change compiler flags in the file '/build.x86_64/conf.make'. |
</code> | </code> |
| |
For this version of ''polymake'' we execute our code as [[reference::callable|Callable Library]] also compiled under the flags '-g' and '-pg'. Therefore you can use the makefile from the [[http://polymake.org/lib/exe/fetch.php/callable.tbz|example]]. We execute our c++ program 'test' via the command | For this version of ''polymake'' we execute our code as [[:callable|Callable Library]] also compiled under the flags '-g' and '-pg'. Therefore you can use the makefile from the [[http://polymake.org/lib/exe/fetch.php/callable.tbz|example]]. We execute our c++ program 'test' via the command |
<code> | <code> |
./test | ./test |