![]() |
QPanda3
Supported by OriginQ
|
Parser for linux perf callgraph output. More...
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 | |
| __init__ (self, stream) | |
| lookahead (self) | |
| consume (self) | |
| eof (self) | |
Public Member Functions inherited from pyqpanda3.profiling.gprof2dot.Parser | |
| __init__ (self) | |
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 | |
Parser for linux perf callgraph output.
It expects output generated with
perf record -g perf script | gprof2dot.py --format=perf
| pyqpanda3.profiling.gprof2dot.PerfParser.__init__ | ( | self, | |
| infile ) |
| pyqpanda3.profiling.gprof2dot.PerfParser.parse | ( | self | ) |
Reimplemented from pyqpanda3.profiling.gprof2dot.Parser.
| pyqpanda3.profiling.gprof2dot.PerfParser.parse_call | ( | self | ) |
| pyqpanda3.profiling.gprof2dot.PerfParser.parse_callchain | ( | self | ) |
| pyqpanda3.profiling.gprof2dot.PerfParser.parse_event | ( | self | ) |
| pyqpanda3.profiling.gprof2dot.PerfParser.readline | ( | self | ) |
Reimplemented from pyqpanda3.profiling.gprof2dot.LineParser.
|
static |
|
static |
| pyqpanda3.profiling.gprof2dot.PerfParser.profile = Profile() |