{"id":521,"date":"2014-01-04T14:16:23","date_gmt":"2014-01-04T12:16:23","guid":{"rendered":"http:\/\/wp.oktay.com\/?p=521"},"modified":"2014-12-31T11:45:31","modified_gmt":"2014-12-31T09:45:31","slug":"valgrind-performance-tool","status":"publish","type":"post","link":"https:\/\/wp.oktay.com\/?p=521","title":{"rendered":"valgrind and gprof &#8211; performance messure tools"},"content":{"rendered":"<p>to create a graph of all call from your executable, use valgrind:<\/p>\n<p><code>valgrind --tool=callgrind --dump-instr=yes --simulate-cache=yes --collect-jumps=yes program arguments<br \/>\n<\/code><br \/>\nthen open in kcachegrind (also available for Windows)<\/p>\n<p>&nbsp;<\/p>\n<p>gprof: you need to compile with -pg. then a gmon.out file will be created.<\/p>\n<p>open that file with:<br \/>\n<code><br \/>\ngprof program gmon.out > gprof.txt<br \/>\ngprof program gmon.out | less<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>to create a graph of all call from your executable, use valgrind: valgrind &#8211;tool=callgrind &#8211;dump-instr=yes &#8211;simulate-cache=yes &#8211;collect-jumps=yes program arguments then open in kcachegrind (also available for Windows) &nbsp; gprof: you need to compile with -pg. then a gmon.out file will be created. open that file with: gprof program gmon.out > gprof.txt gprof program gmon.out |&hellip; <a class=\"more-link\" href=\"https:\/\/wp.oktay.com\/?p=521\">Continue reading <span class=\"screen-reader-text\">valgrind and gprof &#8211; performance messure tools<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-521","post","type-post","status-publish","format-standard","hentry","category-bash","entry"],"_links":{"self":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=521"}],"version-history":[{"count":2,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/521\/revisions"}],"predecessor-version":[{"id":524,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/521\/revisions\/524"}],"wp:attachment":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}