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 |
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.
def gprof2dot.GprofParser.__init__ | ( | self, | |
fp | |||
) |
Definition at line 777 of file gprof2dot.py.
def gprof2dot.GprofParser.parse | ( | self | ) |
Reimplemented from gprof2dot.Parser.
Definition at line 963 of file gprof2dot.py.
References gprof2dot.Cycle.functions, gprof2dot.Profile.functions, gprof2dot.GprofParser.functions, and gprof2dot.GprofParser.parse_cg().
def gprof2dot.GprofParser.parse_cg | ( | self | ) |
Parse the call graph.
Definition at line 942 of file gprof2dot.py.
References gprof2dot.GprofParser.parse_cg_entry(), gprof2dot.LineParser.readline(), and gprof2dot.GprofParser.readline().
Referenced by gprof2dot.GprofParser.parse().
def gprof2dot.GprofParser.parse_cg_entry | ( | self, | |
lines | |||
) |
Definition at line 936 of file gprof2dot.py.
References gprof2dot.GprofParser.parse_cycle_entry(), and gprof2dot.GprofParser.parse_function_entry().
Referenced by gprof2dot.GprofParser.parse_cg().
def gprof2dot.GprofParser.parse_cycle_entry | ( | self, | |
lines | |||
) |
Definition at line 914 of file gprof2dot.py.
References gprof2dot.Profile.cycles, gprof2dot.GprofParser.cycles, and gprof2dot.GprofParser.translate().
Referenced by gprof2dot.GprofParser.parse_cg_entry().
def gprof2dot.GprofParser.parse_function_entry | ( | self, | |
lines | |||
) |
Definition at line 867 of file gprof2dot.py.
References gprof2dot.Cycle.functions, gprof2dot.Profile.functions, gprof2dot.GprofParser.functions, and gprof2dot.GprofParser.translate().
Referenced by gprof2dot.GprofParser.parse_cg_entry().
def gprof2dot.GprofParser.readline | ( | self | ) |
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().
gprof2dot.GprofParser._cg_child_re [static, private] |
Definition at line 844 of file gprof2dot.py.
tuple gprof2dot.GprofParser._cg_cycle_header_re [static, private] |
Definition at line 846 of file gprof2dot.py.
tuple gprof2dot.GprofParser._cg_cycle_member_re [static, private] |
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.
Definition at line 780 of file gprof2dot.py.
Referenced by gprof2dot.GprofParser.parse(), and gprof2dot.GprofParser.parse_function_entry().