blob: 4ec11d4e8a31710cfb3c8c2cd8fb906fba11faaa [file] [log] [blame]
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>GProf User Guide - Installation and Set-Up</title>
<link type="text/css" rel="stylesheet" href="../../../book.css"/>
</head>
<body>
<table class="navigation" style="width: 100%;" border="0" summary="navigation">
<tr>
<th style="width: 100%" align="center" colspan="3">Installation and Set-Up</th>
</tr>
<tr>
<td style="width: 20%" align="left">
<a href="User-Guide.html" title="GProf User Guide">
<img alt="Previous" border="0" src="../../../images/prev.gif"/>
</a>
</td>
<td style="width: 60%" align="center"></td>
<td style="width: 20%" align="right">
<a href="Supported-format.html" title="Supported format">
<img alt="Next" border="0" src="../../../images/next.gif"/>
</a>
</td>
</tr>
<tr>
<td style="width: 20%" align="left" valign="top">GProf User Guide</td>
<td style="width: 60%" align="center"></td>
<td style="width: 20%" align="right" valign="top">Supported format</td>
</tr>
</table><hr class="navigation-separator"/>
<h1 id="Installation_and_Set-Up">Installation and Set-Up</h1>
<p>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. </p>
<h2 id="Older_version_Configuration_pre_3.2.0">Older version Configuration pre 3.2.0</h2>
<p>First of all, the user has to compile the C/C++ program with profiling enabled using the -pg option prior to running the tool. This can be done via the project Properties-&gt;C/C++ Build-&gt;Settings-&gt;Tool Settings-&gt;GCC C Compiler-&gt;Debugging tab which has a check-box "Generate Gprof Information (-pg)". A similar check-box can be used for CDT Autotools projects. It is found under project Properties-&gt;Autotools-&gt;Configure Settings-&gt;configure-&gt;Advanced.</p>
<p>
<img border="0" src="images/LinuxtoolsGprofBuildConsole.png"/>
</p>
<h2 id="Newer_Version_Configuration_3.2.*_onwards">Newer Version Configuration 3.2.* onwards</h2>
<p>When the user tires to run gprof for the first time, the user will be asked if he would like eclipse to enable gprof for the user automatically. </p>
<p>This will enable the debug checkbox 'Generate gprof information (-pg)' in the setting shown in the following screenshot:</p>
<p>
<img title="none " alt="none " border="0" src="images/GProfSettings_page_2014.07.17.png"/>
</p>
<p>After which the tool will start and generate a new view as the output.</p><hr class="navigation-separator"/>
<table class="navigation" style="width: 100%;" border="0" summary="navigation">
<tr>
<td style="width: 20%" align="left">
<a href="User-Guide.html" title="GProf User Guide">
<img alt="Previous" border="0" src="../../../images/prev.gif"/>
</a>
</td>
<td style="width: 60%" align="center">
<a href="User-Guide.html" title="GProf User Guide">
<img alt="GProf User Guide" border="0" src="../../../images/home.gif"/>
</a>
</td>
<td style="width: 20%" align="right">
<a href="Supported-format.html" title="Supported format">
<img alt="Next" border="0" src="../../../images/next.gif"/>
</a>
</td>
</tr>
<tr>
<td style="width: 20%" align="left" valign="top">GProf User Guide</td>
<td style="width: 60%" align="center"></td>
<td style="width: 20%" align="right" valign="top">Supported format</td>
</tr>
</table>
</body>
</html>