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

A function. More...

Inheritance diagram for pyqpanda3.profiling.gprof2dot.Function:

Public Member Functions

 __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 Member Functions inherited from pyqpanda3.profiling.gprof2dot.Object
 __hash__ (self)
 
 __eq__ (self, other)
 
 __lt__ (self, other)
 
 __contains__ (self, event)
 
 __getitem__ (self, event)
 
 __setitem__ (self, event, value)
 

Public Attributes

 id = id
 
 name = name
 
 module = None
 
 process = None
 
dict calls = {}
 
 called = None
 
 weight = None
 
 cycle = None
 
 filename = None
 
- Public Attributes inherited from pyqpanda3.profiling.gprof2dot.Object
dict events = {}
 

Static Protected Attributes

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

Detailed Description

A function.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ __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.

Member Data Documentation

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

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

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