Ravel Python API Reference
A Database-Defined Network Controller
Public Member Functions | List of all members
ravel.profiling.PerfCounter Class Reference

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.
 

Detailed Description

Store timing information for a single operation.

Constructor & Destructor Documentation

def ravel.profiling.PerfCounter.__init__ (   self,
  name,
  time_ms = None 
)
Parameters
namethe name of the operation
time_msthe execution time of the operation, if already recorded

Member Function Documentation

def ravel.profiling.PerfCounter.consume (   self,
  consumer 
)

Consume the performance counter.

Parameters
consumera ProfiledExecution instance to consume the counter

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