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

Parser for linux perf callgraph output. More...

Inheritance diagram for pyqpanda3.profiling.gprof2dot.PerfParser:

Public Member Functions

 __init__ (self, infile)
 
 readline (self)
 
 parse (self)
 
 parse_event (self)
 
 parse_callchain (self)
 
 parse_call (self)
 
- Public Member Functions inherited from pyqpanda3.profiling.gprof2dot.LineParser
 lookahead (self)
 
 consume (self)
 
 eof (self)
 
- Public Member Functions inherited from pyqpanda3.profiling.gprof2dot.Parser

Public Attributes

 profile = Profile()
 
- Public Attributes inherited from pyqpanda3.profiling.gprof2dot.LineParser
int line_no = 0
 

Static Public Attributes

 call_re = re.compile(r'^\s+(?P<address>[0-9a-fA-F]+)\s+(?P<symbol>.*)\s+\‍((?P<module>.*)\‍)$')
 
 addr2_re = re.compile(r'\+0x[0-9a-fA-F]+$')
 
- 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
 

Additional Inherited Members

- Protected Attributes inherited from pyqpanda3.profiling.gprof2dot.LineParser
 _stream = stream
 

Detailed Description

Parser for linux perf callgraph output.

It expects output generated with

perf record -g
perf script | gprof2dot.py --format=perf

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ parse()

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

◆ parse_call()

pyqpanda3.profiling.gprof2dot.PerfParser.parse_call ( self)

◆ parse_callchain()

pyqpanda3.profiling.gprof2dot.PerfParser.parse_callchain ( self)

◆ parse_event()

pyqpanda3.profiling.gprof2dot.PerfParser.parse_event ( self)

◆ readline()

pyqpanda3.profiling.gprof2dot.PerfParser.readline ( self)

Member Data Documentation

◆ addr2_re

pyqpanda3.profiling.gprof2dot.PerfParser.addr2_re = re.compile(r'\+0x[0-9a-fA-F]+$')
static

◆ call_re

pyqpanda3.profiling.gprof2dot.PerfParser.call_re = re.compile(r'^\s+(?P<address>[0-9a-fA-F]+)\s+(?P<symbol>.*)\s+\‍((?P<module>.*)\‍)$')
static

◆ profile

pyqpanda3.profiling.gprof2dot.PerfParser.profile = Profile()

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