Gprof: Difference between revisions

Jump to navigation Jump to search
107 bytes removed ,  4 years ago
no edit summary
No edit summary
No edit summary
Line 25: Line 25:


=== Getting the profiling data === <!--T:5-->
=== Getting the profiling data === <!--T:5-->
In this step the gprof tool is executed again with the binary name and the above mentioned <tt>gmon.out</tt> as argument. This should create an analysis file with all the desired profiling information.
In this step the gprof tool is executed again with the binary name and the above mentioned <tt>gmon.out</tt> as argument; the analysis file is created with all the desired profiling information.
 
{{Command|gprof /path/to/your/executable gmon.out > analysis.txt}}
{{Command|gprof /path/to/your/executable gmon.out > analysis.txt}}
We can see that the new file <tt>analysis.txt</tt> has been created in the current working directory.
 
</translate>
</translate>
rsnt_translations
56,519

edits

Navigation menu