QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.profiling.gprof2dot.OprofileParser Class Reference

Parser for oprofile callgraph output. More...

Inheritance diagram for pyqpanda3.profiling.gprof2dot.OprofileParser:

Public Member Functions

 __init__ (self, infile)
 
 add_entry (self, callers, function, callees)
 
 update_subentries_dict (self, totals, partials)
 
 parse (self)
 
 parse_header (self)
 
 parse_entry (self)
 
 parse_subentries (self)
 
 parse_subentry (self)
 
 skip_separator (self)
 
 match_header (self)
 
 match_separator (self)
 
 match_primary (self)
 
 match_secondary (self)
 
- Public Member Functions inherited from pyqpanda3.profiling.gprof2dot.LineParser
 readline (self)
 
 lookahead (self)
 
 consume (self)
 
 eof (self)
 
- Public Member Functions inherited from pyqpanda3.profiling.gprof2dot.Parser

Public Attributes

dict entries = {}
 
 entry_re = None
 
- Public Attributes inherited from pyqpanda3.profiling.gprof2dot.LineParser
int line_no = 0
 

Static Protected Attributes

dict _fields_re
 

Additional Inherited Members

- Static Public Attributes inherited from pyqpanda3.profiling.gprof2dot.LineParser
 XML_ELEMENT_START
 
 XML_ELEMENT_END
 
 XML_CHARACTER_DATA
 
 XML_EOF
 
- Static Public Attributes inherited from pyqpanda3.profiling.gprof2dot.Parser
bool stdinInput = True
 
bool multipleInput = False
 
- Protected Attributes inherited from pyqpanda3.profiling.gprof2dot.LineParser
 _stream = stream
 

Detailed Description

Constructor & Destructor Documentation

◆ __init__()

pyqpanda3.profiling.gprof2dot.OprofileParser.__init__ ( self,
infile )

Member Function Documentation

◆ add_entry()

pyqpanda3.profiling.gprof2dot.OprofileParser.add_entry ( self,
callers,
function,
callees )

◆ match_header()

pyqpanda3.profiling.gprof2dot.OprofileParser.match_header ( self)

◆ match_primary()

pyqpanda3.profiling.gprof2dot.OprofileParser.match_primary ( self)

◆ match_secondary()

pyqpanda3.profiling.gprof2dot.OprofileParser.match_secondary ( self)

◆ match_separator()

pyqpanda3.profiling.gprof2dot.OprofileParser.match_separator ( self)

◆ parse()

pyqpanda3.profiling.gprof2dot.OprofileParser.parse ( self)

◆ parse_entry()

pyqpanda3.profiling.gprof2dot.OprofileParser.parse_entry ( self)

◆ parse_header()

pyqpanda3.profiling.gprof2dot.OprofileParser.parse_header ( self)

◆ parse_subentries()

pyqpanda3.profiling.gprof2dot.OprofileParser.parse_subentries ( self)

◆ parse_subentry()

pyqpanda3.profiling.gprof2dot.OprofileParser.parse_subentry ( self)

◆ skip_separator()

pyqpanda3.profiling.gprof2dot.OprofileParser.skip_separator ( self)

◆ update_subentries_dict()

pyqpanda3.profiling.gprof2dot.OprofileParser.update_subentries_dict ( self,
totals,
partials )

Member Data Documentation

◆ _fields_re

dict pyqpanda3.profiling.gprof2dot.OprofileParser._fields_re
staticprotected
Initial value:
= {
'samples': r'(\d+)',
'%': r'(\S+)',
'linenr info': r'(?P<source>\‍(no location information\‍)|\S+:\d+)',
'image name': r'(?P<image>\S+(?:\s\‍(tgid:[^)]*\‍))?)',
'app name': r'(?P<application>\S+)',
'symbol name': r'(?P<symbol>\‍(no symbols\‍)|.+?)',
}

◆ entries

dict pyqpanda3.profiling.gprof2dot.OprofileParser.entries = {}

◆ entry_re

pyqpanda3.profiling.gprof2dot.OprofileParser.entry_re = None

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