QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.profiling.data.RoutineData Class Reference

Represents the call data of a given routine. More...

Public Member Functions

 __init__ (self)
 
 add_call (self, RoutineCallsData call_data)
 
 add_subroutine_call (self, str called_subroutine, RoutineCallsData call_data)
 
 add_called_by (self, str caller_routine, RoutineCallsData call_data)
 
str __repr__ (self)
 
ty.Dict to_dict (self)
 

Public Attributes

RoutineCallsData self_call = RoutineCallsData(0, 0, 0)
 
ty.Dict[str, RoutineCallsDatacalled_by = dict()
 
ty.Dict[str, RoutineCallsDatasubroutine_calls = dict()
 

Detailed Description

Represents the call data of a given routine.

Attributes: self_call: data about the routine called_by: data about the callers of the routine subroutine_calls: data about the routines called by the routine

Constructor & Destructor Documentation

◆ __init__()

pyqpanda3.profiling.data.RoutineData.__init__ ( self)

Member Function Documentation

◆ __repr__()

str pyqpanda3.profiling.data.RoutineData.__repr__ ( self)

◆ add_call()

pyqpanda3.profiling.data.RoutineData.add_call ( self,
RoutineCallsData call_data )

◆ add_called_by()

pyqpanda3.profiling.data.RoutineData.add_called_by ( self,
str caller_routine,
RoutineCallsData call_data )

◆ add_subroutine_call()

pyqpanda3.profiling.data.RoutineData.add_subroutine_call ( self,
str called_subroutine,
RoutineCallsData call_data )

◆ to_dict()

ty.Dict pyqpanda3.profiling.data.RoutineData.to_dict ( self)

Member Data Documentation

◆ called_by

ty.Dict[str, RoutineCallsData] pyqpanda3.profiling.data.RoutineData.called_by = dict()

◆ self_call

RoutineCallsData pyqpanda3.profiling.data.RoutineData.self_call = RoutineCallsData(0, 0, 0)

◆ subroutine_calls

ty.Dict[str, RoutineCallsData] pyqpanda3.profiling.data.RoutineData.subroutine_calls = dict()

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