casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | Static Private Attributes
gprof2dot.GprofParser Class Reference
Inheritance diagram for gprof2dot.GprofParser:
gprof2dot.Parser

List of all members.

Public Member Functions

def __init__
def readline
def translate
def parse_function_entry
def parse_cycle_entry
def parse_cg_entry
def parse_cg
def parse

Public Attributes

 fp
 functions
 cycles

Static Private Attributes

tuple _int_re
tuple _float_re
tuple _cg_header_re
tuple _cg_ignore_re
tuple _cg_primary_re
tuple _cg_parent_re
 _cg_child_re
tuple _cg_cycle_header_re
tuple _cg_cycle_member_re
tuple _cg_sep_re

Detailed Description

Parser for GNU gprof output.

See also:
- Chapter "Interpreting gprof's Output" from the GNU gprof manual
  http://sourceware.org/binutils/docs-2.18/gprof/Call-Graph.html#Call-Graph
- File "cg_print.c" from the GNU gprof source code
  http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/src/gprof/cg_print.c?rev=1.12&cvsroot=src

Definition at line 767 of file gprof2dot.py.


Constructor & Destructor Documentation

def gprof2dot.GprofParser.__init__ (   self,
  fp 
)

Definition at line 777 of file gprof2dot.py.


Member Function Documentation

def gprof2dot.GprofParser.parse_cg_entry (   self,
  lines 
)
def gprof2dot.GprofParser.parse_cycle_entry (   self,
  lines 
)
def gprof2dot.GprofParser.parse_function_entry (   self,
  lines 
)

Definition at line 783 of file gprof2dot.py.

Referenced by gprof2dot.GprofParser.parse_cg().

def gprof2dot.GprofParser.translate (   self,
  mo 
)
Extract a structure from a match object, while translating the types in the process.

Definition at line 794 of file gprof2dot.py.

Referenced by gprof2dot.GprofParser.parse_cycle_entry(), and gprof2dot.GprofParser.parse_function_entry().


Member Data Documentation

Definition at line 844 of file gprof2dot.py.

Definition at line 846 of file gprof2dot.py.

Definition at line 856 of file gprof2dot.py.

tuple gprof2dot.GprofParser._cg_header_re [static, private]

Definition at line 808 of file gprof2dot.py.

tuple gprof2dot.GprofParser._cg_ignore_re [static, private]

Definition at line 817 of file gprof2dot.py.

tuple gprof2dot.GprofParser._cg_parent_re [static, private]

Definition at line 835 of file gprof2dot.py.

tuple gprof2dot.GprofParser._cg_primary_re [static, private]

Definition at line 824 of file gprof2dot.py.

tuple gprof2dot.GprofParser._cg_sep_re [static, private]

Definition at line 865 of file gprof2dot.py.

tuple gprof2dot.GprofParser._float_re [static, private]

Definition at line 792 of file gprof2dot.py.

tuple gprof2dot.GprofParser._int_re [static, private]

Definition at line 791 of file gprof2dot.py.

Definition at line 781 of file gprof2dot.py.

Referenced by gprof2dot.GprofParser.parse_cycle_entry().

Definition at line 779 of file gprof2dot.py.


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