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

Represents the call data of a given routine. 更多...

Public 成员函数

 __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 属性

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

详细描述

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

构造及析构函数说明

◆ __init__()

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

成员函数说明

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

类成员变量说明

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

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