arc_recorder Class Reference

During building a callgraph_container we store all caller/callee relationship in this container. More...

#include <callgraph_container.h>

List of all members.

Classes

struct  cg_data
 Internal structure used during collation.

Public Member Functions

 ~arc_recorder ()
void add (symbol_entry const &caller, symbol_entry const *callee, count_array_t const &arc_count)
 Add a symbol arc.
symbol_collection const & get_symbols () const
 return all the cg symbols
void process (count_array_t total, double threshold, string_filter const &filter)
 After population, build the final output, and do thresholding.

Detailed Description

During building a callgraph_container we store all caller/callee relationship in this container.

An "arc" is simply a description of a call from one function to another.


Constructor & Destructor Documentation

arc_recorder::~arc_recorder (  )  [inline]

Member Function Documentation

void arc_recorder::add ( symbol_entry const &  caller,
symbol_entry const *  callee,
count_array_t const &  arc_count 
)

Add a symbol arc.

Parameters:
caller The calling symbol
callee The called symbol
arc_count profile data for the arcs

If the callee is NULL, only the caller is added to the main list. This is used to initially populate the recorder with the symbols.

symbol_collection const & arc_recorder::get_symbols (  )  const

return all the cg symbols

Referenced by callgraph_container::get_symbols(), and callgraph_container::output_hint().

void arc_recorder::process ( count_array_t  total,
double  threshold,
string_filter const &  filter 
)

The documentation for this class was generated from the following files:

Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1