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

Parser for the output of stackcollapse. More...

Inheritance diagram for pyqpanda3.profiling.gprof2dot.CollapseParser:
[legend]

Public Member Functions

 __init__ (self, infile)
 
 parse (self)
 
 parse_event (self)
 
- Public Member Functions inherited from pyqpanda3.profiling.gprof2dot.LineParser
 __init__ (self, stream)
 
 readline (self)
 
 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'^(?P<func>[^ ]+) \‍((?P<file>.*):(?P<line>[0-9]+)\‍)$')
 
- 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 Member Functions

 _make_function (self, call)
 turn a call str into a Function
 

Additional Inherited Members

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

Detailed Description

Parser for the output of stackcollapse.

(from https://github.com/brendangregg/FlameGraph)

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ _make_function()

pyqpanda3.profiling.gprof2dot.CollapseParser._make_function ( self,
call )
protected

turn a call str into a Function

takes a call site, as found between semicolons in the input, and returns a Function definition corresponding to that call site.

◆ parse()

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

◆ parse_event()

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

Member Data Documentation

◆ call_re

pyqpanda3.profiling.gprof2dot.CollapseParser.call_re = re.compile(r'^(?P<func>[^ ]+) \‍((?P<file>.*):(?P<line>[0-9]+)\‍)$')
static

◆ profile

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

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