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

Represents the base call data. More...

Public Member Functions

 __init__ (self, int number, int self_nano_seconds, int subroutines_nano_seconds)
 
"RoutineCallsData" __iadd__ (self, "RoutineCallsData" other)
 
"RoutineCallsData" __add__ (self, "RoutineCallsData" other)
 
str __repr__ (self)
 
ty.Dict[str, int] to_dict (self)
 

Public Attributes

 number = number
 
 self_nano_seconds = self_nano_seconds
 
 subroutines_nano_seconds = subroutines_nano_seconds
 

Detailed Description

Represents the base call data.

This class is "simply" a triplet of ints representing:

  1. A number of calls.
  2. A "self" time.
  3. A "subroutine" time. With these 3 numbers, it can represent all the call data we need.

Attributes: number: number of calls self_nano_seconds: time spent in the routine, subroutines excluded subroutines_nano_seconds: time spent in subroutines

Constructor & Destructor Documentation

◆ __init__()

pyqpanda3.profiling.data.RoutineCallsData.__init__ ( self,
int number,
int self_nano_seconds,
int subroutines_nano_seconds )

Member Function Documentation

◆ __add__()

"RoutineCallsData" pyqpanda3.profiling.data.RoutineCallsData.__add__ ( self,
"RoutineCallsData" other )

◆ __iadd__()

"RoutineCallsData" pyqpanda3.profiling.data.RoutineCallsData.__iadd__ ( self,
"RoutineCallsData" other )

◆ __repr__()

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

◆ to_dict()

ty.Dict[str, int] pyqpanda3.profiling.data.RoutineCallsData.to_dict ( self)

Member Data Documentation

◆ number

pyqpanda3.profiling.data.RoutineCallsData.number = number

◆ self_nano_seconds

pyqpanda3.profiling.data.RoutineCallsData.self_nano_seconds = self_nano_seconds

◆ subroutines_nano_seconds

pyqpanda3.profiling.data.RoutineCallsData.subroutines_nano_seconds = subroutines_nano_seconds

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