QPanda3
Supported by OriginQ
载入中...
搜索中...
未找到
pyqpanda3.profiling.gprof2dot.CollapseParser类 参考

Parser for the output of stackcollapse 更多...

类 pyqpanda3.profiling.gprof2dot.CollapseParser 继承关系图:
[图例]

Public 成员函数

 __init__ (self, infile)
 
 parse (self)
 
 parse_event (self)
 
- Public 成员函数 继承自 pyqpanda3.profiling.gprof2dot.LineParser
 __init__ (self, stream)
 
 readline (self)
 
 lookahead (self)
 
 consume (self)
 
 eof (self)
 
- Public 成员函数 继承自 pyqpanda3.profiling.gprof2dot.Parser
 __init__ (self)
 

Public 属性

 profile = Profile()
 
- Public 属性 继承自 pyqpanda3.profiling.gprof2dot.LineParser
int line_no = 0
 

静态 Public 属性

 call_re = re.compile(r'^(?P<func>[^ ]+) \‍((?P<file>.*):(?P<line>[0-9]+)\‍)$')
 
- 静态 Public 属性 继承自 pyqpanda3.profiling.gprof2dot.LineParser
 XML_ELEMENT_START
 
 XML_ELEMENT_END
 
 XML_CHARACTER_DATA
 
 XML_EOF
 
- 静态 Public 属性 继承自 pyqpanda3.profiling.gprof2dot.Parser
bool stdinInput = True
 
bool multipleInput = False
 

Protected 成员函数

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

额外继承的成员函数

- Protected 属性 继承自 pyqpanda3.profiling.gprof2dot.LineParser
 _stream = stream
 

详细描述

Parser for the output of stackcollapse

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

构造及析构函数说明

◆ __init__()

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

成员函数说明

◆ _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)

类成员变量说明

◆ 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()

该类的文档由以下文件生成: