#include <callgraph_container.h>
Public Member Functions | |
void | populate (std::list< inverted_profile > const &iprofiles, extra_images const &extra, bool debug_info, double threshold, bool merge_lib, string_filter const &sym_filter) |
column_flags | output_hint () const |
return hint on how data must be displayed. | |
count_array_t | samples_count () const |
return the total number of samples. | |
symbol_collection const & | get_symbols () const |
Data Fields | |
extra_images | extra_found_images |
Private Member Functions | |
void | add (profile_t const &profile, op_bfd const &caller_bfd, bool bfd_caller_ok, op_bfd const &callee_bfd, std::string const &app_name, profile_container const &pc, bool debug_info, size_t pclass) |
void | populate (std::list< image_set > const &lset, std::string const &app_image, size_t pclass, profile_container const &pc, bool debug_info, bool merge_lib) |
void | populate (std::list< std::string > const &cg_files, std::string const &app_image, size_t pclass, profile_container const &pc, bool debug_info, bool merge_lib) |
void | add_symbols (profile_container const &pc) |
record all main symbols | |
Private Attributes | |
count_array_t | total_count |
Cached value of samples count. | |
arc_recorder | recorder |
A structured representation of the callgraph. |
Store all callgraph information for the given profiles
Definition at line 104 of file callgraph_container.h.
void callgraph_container::add | ( | profile_t const & | profile, | |
op_bfd const & | caller_bfd, | |||
bool | bfd_caller_ok, | |||
op_bfd const & | callee_bfd, | |||
std::string const & | app_name, | |||
profile_container const & | pc, | |||
bool | debug_info, | |||
size_t | pclass | |||
) | [private] |
Record caller/callee for one cg file
profile | one callgraph file stored in a profile_t | |
caller_bfd | the caller bfd | |
bfd_caller_ok | true if we succefully open the binary | |
callee_bfd | the callee bfd | |
app_name | the owning application | |
pc | the profile_container holding all non cg samples. | |
debug_info | record linenr debug information | |
pclass | profile class nr |
void callgraph_container::add_symbols | ( | profile_container const & | pc | ) | [private] |
record all main symbols
Definition at line 571 of file callgraph_container.cpp.
References arc_recorder::add(), profile_container::begin_symbol(), profile_container::end_symbol(), and recorder.
symbol_collection const & callgraph_container::get_symbols | ( | ) | const |
Definition at line 603 of file callgraph_container.cpp.
References arc_recorder::get_symbols(), and recorder.
column_flags callgraph_container::output_hint | ( | ) | const |
return hint on how data must be displayed.
Definition at line 581 of file callgraph_container.cpp.
References cf_none, arc_recorder::get_symbols(), recorder, and syms.
void callgraph_container::populate | ( | std::list< std::string > const & | cg_files, | |
std::string const & | app_image, | |||
size_t | pclass, | |||
profile_container const & | pc, | |||
bool | debug_info, | |||
bool | merge_lib | |||
) | [private] |
void callgraph_container::populate | ( | std::list< image_set > const & | lset, | |
std::string const & | app_image, | |||
size_t | pclass, | |||
profile_container const & | pc, | |||
bool | debug_info, | |||
bool | merge_lib | |||
) | [private] |
void callgraph_container::populate | ( | std::list< inverted_profile > const & | iprofiles, | |
extra_images const & | extra, | |||
bool | debug_info, | |||
double | threshold, | |||
bool | merge_lib, | |||
string_filter const & | sym_filter | |||
) |
Populate the container, must be called once only.
iprofiles | sample file list including callgraph files. | |
extra | extra image list to fixup binary name. | |
debug_info | true if we must record linenr information | |
threshold | ignore sample percent below this threshold | |
merge_lib | merge library samples | |
sym_filter | symbol filter |
Currently all errors core dump. FIXME: consider if this should be a ctor
count_array_t callgraph_container::samples_count | ( | ) | const |
return the total number of samples.
Definition at line 597 of file callgraph_container.cpp.
References total_count.
Referenced by format_output::cg_formatter::cg_formatter(), and format_output::xml_cg_formatter::xml_cg_formatter().
Definition at line 168 of file callgraph_container.h.
arc_recorder callgraph_container::recorder [private] |
A structured representation of the callgraph.
Definition at line 165 of file callgraph_container.h.
Referenced by add_symbols(), get_symbols(), and output_hint().
Cached value of samples count.
Definition at line 162 of file callgraph_container.h.
Referenced by samples_count().