xml_utils.cpp File Reference

#include <iostream>
#include <sstream>
#include "xml_utils.h"
#include "format_output.h"
#include "arrange_profiles.h"
#include "op_bfd.h"
#include "cverb.h"
Include dependency graph for xml_utils.cpp:

Go to the source code of this file.

Data Structures

class  subclass_info_t
class  module_info
class  thread_info
class  process_info
class  process_root_info
class  binary_info
class  binary_root_info

Typedefs

typedef growable_vector
< subclass_info_t
subclass_array_t
typedef growable_vector
< subclass_array_t
event_subclass_t
typedef growable_vector
< event_subclass_t
cpu_subclass_t

Functions

string get_counts_string (count_array_t const &counts, size_t begin, size_t end)
size_t get_next_tgid_pclass (size_t start)
size_t get_next_tid_pclass (size_t start)
void build_process_tree ()

Variables

bool want_xml = false
size_t nr_classes = 0
size_t nr_cpus = 0
size_t nr_events = 0
sym_iterator symbols_begin
sym_iterator symbols_end
format_output::xml_formatterxml_out
xml_utilsxml_support
ostringstream xml_options
static process_root_info processes_root
static binary_root_info binaries_root

Detailed Description

utility routines for generating XML

Remarks:
Copyright 2006 OProfile authors
Read the file COPYING
Author:
Dave Nomura

Definition in file xml_utils.cpp.


Typedef Documentation

Definition at line 280 of file xml_utils.cpp.

Definition at line 279 of file xml_utils.cpp.

Definition at line 278 of file xml_utils.cpp.


Function Documentation

void build_process_tree (  ) 

Definition at line 994 of file xml_utils.cpp.

References process_root_info::add_process(), process_info::add_thread(), classes, get_next_tgid_pclass(), get_next_tid_pclass(), nr_classes, and profile_classes::v.

Here is the call graph for this function:

string get_counts_string ( count_array_t const &  counts,
size_t  begin,
size_t  end 
)

Definition at line 346 of file xml_utils.cpp.

References nr_cpus.

size_t get_next_tgid_pclass ( size_t  start  ) 

Definition at line 968 of file xml_utils.cpp.

References classes, nr_classes, and profile_classes::v.

Referenced by build_process_tree().

Here is the caller graph for this function:

size_t get_next_tid_pclass ( size_t  start  ) 

Definition at line 979 of file xml_utils.cpp.

References classes, nr_classes, and profile_classes::v.

Referenced by build_process_tree().

Here is the caller graph for this function:


Variable Documentation

Definition at line 527 of file xml_utils.cpp.

size_t nr_classes = 0
size_t nr_cpus = 0

Definition at line 25 of file xml_utils.cpp.

Referenced by get_counts_string(), xml_utils::set_nr_cpus(), and xml_utils::xml_utils().

size_t nr_events = 0

Definition at line 26 of file xml_utils.cpp.

Referenced by do_test(), and xml_utils::set_nr_events().

Definition at line 526 of file xml_utils.cpp.

bool want_xml = false

Definition at line 22 of file xml_utils.cpp.

Referenced by arrange_profiles(), describe_cpu(), describe_header(), main(), and operator<().

ostringstream xml_options

Definition at line 34 of file xml_utils.cpp.

Referenced by xml_utils::add_option().

Definition at line 30 of file xml_utils.cpp.

Definition at line 31 of file xml_utils.cpp.


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1