Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Linux Tools Project/Callgraph/User Guide"

(Features)
Line 15: Line 15:
 
= Features =
 
= Features =
  
'''Call Graph'''
+
==Call Graph==
  
 
Renders a visual function trace of the program, tracking selected or all functions.
 
Renders a visual function trace of the program, tracking selected or all functions.
Line 39: Line 39:
  
  
'''Linkage To Source Code'''
+
==Linkage To Source Code==
  
 
The graph views are linked to their source code -- hold CTRL and double-click any function in a non-aggregate view to be taken to where that function was called. Doing the same for an aggregate node will take you to where that function is defined.
 
The graph views are linked to their source code -- hold CTRL and double-click any function in a non-aggregate view to be taken to where that function was called. Doing the same for an aggregate node will take you to where that function is defined.
  
  
''' Function Calls In Chronological Order'''
+
==Function Calls In Chronological Order==
  
 
Using the "Go To" menu, one can step through functions in chronological order, using the Previous/Next options.
 
Using the "Go To" menu, one can step through functions in chronological order, using the Previous/Next options.
Line 51: Line 51:
  
  
''' Open / Save Call Graphs '''
+
==Open / Save Call Graphs==
  
 
Certain large projects might take longer to render, and so users have the ability to save the data collected from having profiled their project. Loading the data file and attempting to render that will take a much shorter time than attempting to go through the full process of profiling a project.
 
Certain large projects might take longer to render, and so users have the ability to save the data collected from having profiled their project. Loading the data file and attempting to render that will take a much shorter time than attempting to go through the full process of profiling a project.
  
 
<center>[[Image:Callgraph_file_menu.png]]</center>
 
<center>[[Image:Callgraph_file_menu.png]]</center>

Revision as of 11:38, 5 August 2010

Installation

Installation of the Eclipse SystemTap plugin will be done through the yum repository. Users can simply type from command-line :

'yum install eclipse-callgraph'

General Usage

All the SystemTap plugins are accessible from the C/C++ perspective, by right clicking on C/C++ source file in the editor view, or by right clicking on the corresponding binary in the package explorer view.

Profile-screen.png

Features

Call Graph

Renders a visual function trace of the program, tracking selected or all functions.


This feature comes with a few different display options and various other information such as :

  • function parent/children relationships
  • number of times a function is called
  • time spent in an instance of a function
  • time spent in all instances of a function


File:Stapgraph menu.png

The following types of views are available to see the call hierarchy of the functions belonging to the executable.


Radial view.png Tree view.png File:Box view.png File:Aggregate view.png


Linkage To Source Code

The graph views are linked to their source code -- hold CTRL and double-click any function in a non-aggregate view to be taken to where that function was called. Doing the same for an aggregate node will take you to where that function is defined.


Function Calls In Chronological Order

Using the "Go To" menu, one can step through functions in chronological order, using the Previous/Next options.

Callgraph goto menu.png


Open / Save Call Graphs

Certain large projects might take longer to render, and so users have the ability to save the data collected from having profiled their project. Loading the data file and attempting to render that will take a much shorter time than attempting to go through the full process of profiling a project.

Callgraph file menu.png

Back to the top