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

A function. 更多...

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

Public 成员函数

 __init__ (self, id, name)
 
 add_call (self, call)
 
 get_call (self, callee_id)
 
 stripped_name (self)
 Remove extraneous information from C++ demangled function names.
 
 __repr__ (self)
 
 dump (self, sep1=",\n\t", sep2=":=", sep3="\n")
 Returns as a string all information available in this Function object separators sep1:between entries sep2:between attribute name and value, sep3: inserted at end
 
- Public 成员函数 继承自 pyqpanda3.profiling.gprof2dot.Object
 __init__ (self, events=None)
 
 __hash__ (self)
 
 __eq__ (self, other)
 
 __lt__ (self, other)
 
 __contains__ (self, event)
 
 __getitem__ (self, event)
 
 __setitem__ (self, event, value)
 

Public 属性

 id = id
 
 name = name
 
 module = None
 
 process = None
 
dict calls = {}
 
 called = None
 
 weight = None
 
 cycle = None
 
 filename = None
 
- Public 属性 继承自 pyqpanda3.profiling.gprof2dot.Object
dict events = {}
 

静态 Protected 属性

 _parenthesis_re = re.compile(r'\‍([^()]*\‍)')
 
 _angles_re = re.compile(r'<[^<>]*>')
 
 _const_re = re.compile(r'\s+const$')
 

详细描述

A function.

构造及析构函数说明

◆ __init__()

pyqpanda3.profiling.gprof2dot.Function.__init__ ( self,
id,
name )

成员函数说明

◆ __repr__()

pyqpanda3.profiling.gprof2dot.Function.__repr__ ( self)

◆ add_call()

pyqpanda3.profiling.gprof2dot.Function.add_call ( self,
call )

◆ dump()

pyqpanda3.profiling.gprof2dot.Function.dump ( self,
sep1 = ",\n\t",
sep2 = ":=",
sep3 = "\n" )

Returns as a string all information available in this Function object separators sep1:between entries sep2:between attribute name and value, sep3: inserted at end

◆ get_call()

pyqpanda3.profiling.gprof2dot.Function.get_call ( self,
callee_id )

◆ stripped_name()

pyqpanda3.profiling.gprof2dot.Function.stripped_name ( self)

Remove extraneous information from C++ demangled function names.

类成员变量说明

◆ _angles_re

pyqpanda3.profiling.gprof2dot.Function._angles_re = re.compile(r'<[^<>]*>')
staticprotected

◆ _const_re

pyqpanda3.profiling.gprof2dot.Function._const_re = re.compile(r'\s+const$')
staticprotected

◆ _parenthesis_re

pyqpanda3.profiling.gprof2dot.Function._parenthesis_re = re.compile(r'\‍([^()]*\‍)')
staticprotected

◆ called

pyqpanda3.profiling.gprof2dot.Function.called = None

◆ calls

dict pyqpanda3.profiling.gprof2dot.Function.calls = {}

◆ cycle

pyqpanda3.profiling.gprof2dot.Function.cycle = None

◆ filename

pyqpanda3.profiling.gprof2dot.Function.filename = None

◆ id

pyqpanda3.profiling.gprof2dot.Function.id = id

◆ module

pyqpanda3.profiling.gprof2dot.Function.module = None

◆ name

pyqpanda3.profiling.gprof2dot.Function.name = name

◆ process

pyqpanda3.profiling.gprof2dot.Function.process = None

◆ weight

pyqpanda3.profiling.gprof2dot.Function.weight = None

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