Ravel Python API Reference
A Database-Defined Network Controller
|
Store timing information for a single operation. More...
Inherits object.
Public Member Functions | |
def | __init__ |
def | start |
Start recording execution time of an operation. | |
def | stop |
Stop recording execution time of an operation. | |
def | consume |
Consume the performance counter. More... | |
def | report |
Report the performance counter by adding it to the message queue. | |
Store timing information for a single operation.
def ravel.profiling.PerfCounter.__init__ | ( | self, | |
name, | |||
time_ms = None |
|||
) |
name | the name of the operation |
time_ms | the execution time of the operation, if already recorded |
def ravel.profiling.PerfCounter.consume | ( | self, | |
consumer | |||
) |
Consume the performance counter.
consumer | a ProfiledExecution instance to consume the counter |