class to output in XML format More...
#include <format_output.h>


Public Member Functions | |
| xml_formatter (profile_container const *profile, symbol_collection &symbols, extra_images const &extra, string_filter const &symbol_filter) | |
| build a ready to use formatter | |
| void | output (std::ostream &out) |
| virtual void | output_symbol (std::ostream &out, symbol_entry const *symb, size_t lo, size_t hi, bool is_module) |
| output one symbol symb to out according to the output format specifier previously set by call(s) to add_format() | |
| std::string | output_symbol_details (symbol_entry const *symb, size_t &detail_index, size_t const lo, size_t const hi) |
| output details for the symbol | |
| void | show_details (bool) |
| set the output_details boolean | |
| void | output_symbol_data (std::ostream &out) |
class to output in XML format
| format_output::xml_formatter::xml_formatter | ( | profile_container const * | profile, | |
| symbol_collection & | symbols, | |||
| extra_images const & | extra, | |||
| string_filter const & | symbol_filter | |||
| ) |
build a ready to use formatter
References format_output::formatter::counts, profile_container::samples_count(), and format_output::formatter::counts_t::total.
| void format_output::xml_formatter::output | ( | std::ostream & | out | ) |
| virtual void format_output::xml_formatter::output_symbol | ( | std::ostream & | out, | |
| symbol_entry const * | symb, | |||
| size_t | lo, | |||
| size_t | hi, | |||
| bool | is_module | |||
| ) | [virtual] |
output one symbol symb to out according to the output format specifier previously set by call(s) to add_format()
Reimplemented in format_output::xml_cg_formatter.
Referenced by module_info::output_symbols().
| void format_output::xml_formatter::output_symbol_data | ( | std::ostream & | out | ) |
| string format_output::xml_formatter::output_symbol_details | ( | symbol_entry const * | symb, | |
| size_t & | detail_index, | |||
| size_t const | lo, | |||
| size_t const | hi | |||
| ) |
output details for the symbol
References profile_container::begin(), close_element(), sample_entry::counts, DETAIL_DATA, profile_container::end(), format_output::formatter::extra_found_images, sample_entry::file_loc, has_sample_counts(), init_attr(), NONE, open_element(), symbol_entry::sample, SOURCE_FILE, SOURCE_LINE, TABLE_ID, and VMA.
| void format_output::xml_formatter::show_details | ( | bool | on_off | ) |
set the output_details boolean
1.6.1