blob: 67c06180a68e35d69f0619435649fbe526a6d42a [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 - GProf View</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">GProf View</th>
</tr>
<tr>
<td style="width: 20%" align="left">
<a href="Profiling-Using-GProf.html" title="Profiling Using GProf">
<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="Troubleshooting.html" title="Troubleshooting">
<img alt="Next" border="0" src="../../../images/next.gif"/>
</a>
</td>
</tr>
<tr>
<td style="width: 20%" align="left" valign="top">Profiling Using GProf</td>
<td style="width: 60%" align="center"></td>
<td style="width: 20%" align="right" valign="top">Troubleshooting</td>
</tr>
</table><hr class="navigation-separator"/>
<h1 id="GProf_View">GProf View</h1>
<p>The Gprof view shows which parts of the program consume most of the execution time. It also provides call graph infomation for each function. </p>
<p>
<br/>
<img border="0" src="images/LinuxToolsGprofView.png"/>
</p>
<p>
<br/> Several buttons are available in the toolbar.
</p>
<ul>
<li>
<img border="0" src="images/Gprof-export-to-csv.gif"/>&nbsp;: "Export to CSV" button allows you to export the gprof result as a CSV text file, suitable for any spreadsheet.
</li>
<li>
<img border="0" src="images/Gprof-sort-per-file.gif"/>&nbsp;: "Sort samples per file" button displays gprof result sorted by file.
</li>
<li>
<img border="0" src="images/Gprof-sort-per-function.gif"/>&nbsp;: "Sort samples per function" button displays gprof result sorted by function.
</li>
<li>
<img border="0" src="images/Gprof-sort-per-line.gif"/>&nbsp;: "Sort samples per line" button displays gprof result sorted by line.
</li>
<li>
<img border="0" src="images/Gprof-display-call-graph.png"/>&nbsp;: "Display function call graph" button displays gprof result as a call graph.
</li>
</ul>
<ul>
<li>
<img border="0" src="images/Gprof-sample-time.gif"/>&nbsp;: "Switch samples/time" button allows you to switch result display from samples to time and vice-versa.
</li>
<li>
<img border="0" src="images/Gprof-birt-chart.gif"/>&nbsp;: "Create Chart..." button allows you to create a BIRT chart, with the current lines selected in the gprof result view.
</li>
</ul>
<p>
<br/>
</p>
<p>If program is compiled with debug option (e.g. "-g"), double-clicking on a item in the result will open the corresponding source location.</p><hr class="navigation-separator"/>
<table class="navigation" style="width: 100%;" border="0" summary="navigation">
<tr>
<td style="width: 20%" align="left">
<a href="Profiling-Using-GProf.html" title="Profiling Using GProf">
<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="Troubleshooting.html" title="Troubleshooting">
<img alt="Next" border="0" src="../../../images/next.gif"/>
</a>
</td>
</tr>
<tr>
<td style="width: 20%" align="left" valign="top">Profiling Using GProf</td>
<td style="width: 60%" align="center"></td>
<td style="width: 20%" align="right" valign="top">Troubleshooting</td>
</tr>
</table>
</body>
</html>