Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Linux Tools Project/GProf/User Guide"
(First draft of the Gprof documentation) |
(→GProf View) |
||
Line 28: | Line 28: | ||
− | + | [[Image:Gprof-view.jpg]] | |
+ | It's also possible to generate BIRT charts from this view. | ||
= Troubleshooting = | = Troubleshooting = | ||
If you encounter a problem with gprof plugin, please [https://bugs.eclipse.org/bugs/enter_bug.cgi?assigned_to=xavier.raynaud@st.com&blocked=&bug_file_loc=http%3A%2F%2F&bug_severity=normal&bug_status=NEW&comment=&component=GProf&contenttypeentry=&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&data=&dependson=&description=&flag_type-1=X&flag_type-2=X&flag_type-4=X&flag_type-6=X&flag_type-7=X&flag_type-8=X&form_name=enter_bug&keywords=&op_sys=Linux&priority=P3&product=Linux%20Tools&qa_contact=&rep_platform=PC&short_desc= file a bug]. | If you encounter a problem with gprof plugin, please [https://bugs.eclipse.org/bugs/enter_bug.cgi?assigned_to=xavier.raynaud@st.com&blocked=&bug_file_loc=http%3A%2F%2F&bug_severity=normal&bug_status=NEW&comment=&component=GProf&contenttypeentry=&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&data=&dependson=&description=&flag_type-1=X&flag_type-2=X&flag_type-4=X&flag_type-6=X&flag_type-7=X&flag_type-8=X&form_name=enter_bug&keywords=&op_sys=Linux&priority=P3&product=Linux%20Tools&qa_contact=&rep_platform=PC&short_desc= file a bug]. |
Revision as of 05:28, 24 May 2010
{{#eclipseproject:technology.linux-distros}}
Overview
The Gprof plugin allows to visualize in eclipse gprof's output (aka gmon.out).
For more details on gprof, visit the GNU Gprof documentation at http://sourceware.org/binutils/docs-2.20/gprof/index.html .
Installation and Set-Up
Gprof plugin depends on binutils (such as addr2line, c++filt and nm). Gprof can be used on any platform as soon as these binutils are in PATH. For example, you can use it on windows with cygwin.
First of all, the user has to compile the C/C++ program with profiling enabled using the -pg option prior to running the tool.
Opening gmon.out
Once the application run is finished, a gmon.out file is generated under the project.
Double clicking on this file will open a dialog to select the associated binary.
GProf View
The Gprof view shows which parts of the program consume most of the execution time. It also provides call graph infomation for each function. Source code can be viewed in an editor by double clicking on a function in the tree.
It's also possible to generate BIRT charts from this view.
Troubleshooting
If you encounter a problem with gprof plugin, please file a bug.