xml_utils Class Reference

#include <xml_utils.h>

Collaboration diagram for xml_utils:
Collaboration graph
[legend]

Public Member Functions

 xml_utils (format_output::xml_formatter *xo, symbol_collection const &s, size_t nc, extra_images const &extra)
void output_symbol_bytes (std::ostream &out, symbol_entry const *symb, size_t sym_id, op_bfd const &abfd)
bool output_summary_data (std::ostream &out, count_array_t const &summary, size_t pclass)
size_t get_symbol_index (sym_iterator const it)
void output_program_structure (std::ostream &out)
void build_subclasses (std::ostream &out)

Static Public Member Functions

static std::string get_timer_setup (size_t count)
static std::string get_event_setup (std::string event, size_t count, std::string unit_mask)
static std::string get_profile_header (std::string cpu_name, double const speed)
static void set_nr_cpus (size_t cpus)
static void set_nr_events (size_t events)
static void set_has_nonzero_masks ()
static void add_option (tag_t tag, bool value)
static void add_option (tag_t tag, std::string const &value)
static void add_option (tag_t tag, std::vector< std::string > const &value)
static void add_option (tag_t tag, std::list< std::string > const &value)
static void output_xml_header (std::string const &command_options, std::string const &cpu_info, std::string const &events)

Private Attributes

bool multiple_events
bool has_subclasses
size_t bytes_index
extra_images const & extra_found_images

Static Private Attributes

static bool has_nonzero_masks = false
static size_t events_index = 0

Detailed Description

Definition at line 24 of file xml_utils.h.


Constructor & Destructor Documentation

xml_utils::xml_utils ( format_output::xml_formatter xo,
symbol_collection const &  s,
size_t  nc,
extra_images const &  extra 
)

Member Function Documentation

static void xml_utils::add_option ( tag_t  tag,
std::list< std::string > const &  value 
) [static]
static void xml_utils::add_option ( tag_t  tag,
std::vector< std::string > const &  value 
) [static]
static void xml_utils::add_option ( tag_t  tag,
std::string const &  value 
) [static]
void xml_utils::add_option ( tag_t  tag,
bool  value 
) [static]

Definition at line 239 of file xml_utils.cpp.

References init_attr(), and xml_options.

Referenced by handle_options().

Here is the call graph for this function:

Here is the caller graph for this function:

void xml_utils::build_subclasses ( std::ostream &  out  ) 
static std::string xml_utils::get_event_setup ( std::string  event,
size_t  count,
std::string  unit_mask 
) [static]
static std::string xml_utils::get_profile_header ( std::string  cpu_name,
double const   speed 
) [static]

Referenced by describe_cpu().

Here is the caller graph for this function:

size_t xml_utils::get_symbol_index ( sym_iterator const   it  ) 
string xml_utils::get_timer_setup ( size_t  count  )  [static]

Definition at line 139 of file xml_utils.cpp.

References close_element(), init_attr(), open_element(), RTC_INTERRUPTS, and TIMER_SETUP.

Here is the call graph for this function:

void xml_utils::output_program_structure ( std::ostream &  out  ) 
bool xml_utils::output_summary_data ( std::ostream &  out,
count_array_t const &  summary,
size_t  pclass 
)

Referenced by module_info::output_summary().

Here is the caller graph for this function:

void xml_utils::output_symbol_bytes ( std::ostream &  out,
symbol_entry const *  symb,
size_t  sym_id,
op_bfd const &  abfd 
)
static void xml_utils::output_xml_header ( std::string const &  command_options,
std::string const &  cpu_info,
std::string const &  events 
) [static]
void xml_utils::set_has_nonzero_masks (  )  [static]

Definition at line 195 of file xml_utils.cpp.

References has_nonzero_masks.

void xml_utils::set_nr_cpus ( size_t  cpus  )  [static]

Definition at line 185 of file xml_utils.cpp.

References nr_cpus.

void xml_utils::set_nr_events ( size_t  events  )  [static]

Definition at line 190 of file xml_utils.cpp.

References nr_events.


Field Documentation

size_t xml_utils::bytes_index [private]

Definition at line 57 of file xml_utils.h.

size_t xml_utils::events_index = 0 [static, private]

Definition at line 60 of file xml_utils.h.

Definition at line 58 of file xml_utils.h.

bool xml_utils::has_nonzero_masks = false [static, private]

Definition at line 59 of file xml_utils.h.

Referenced by set_has_nonzero_masks().

bool xml_utils::has_subclasses [private]

Definition at line 56 of file xml_utils.h.

Definition at line 55 of file xml_utils.h.

Referenced by xml_utils().


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

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1