Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
tests.qps.histogram.Histogram Class Reference
Inheritance diagram for tests.qps.histogram.Histogram:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, resolution, max_possible)
 
def add (self, val)
 
def get_data (self)
 
def merge (self, another_data)
 
def reset (self)
 

Public Attributes

 multiplier
 

Private Member Functions

def _bucket_for (self, val)
 

Private Attributes

 _buckets
 
 _count
 
 _lock
 
 _max
 
 _max_possible
 
 _min
 
 _resolution
 
 _sum
 
 _sum_of_squares
 

Detailed Description

Histogram class used for recording performance testing data.

  This class is thread safe.

Definition at line 21 of file histogram.py.

Constructor & Destructor Documentation

◆ __init__()

def tests.qps.histogram.Histogram.__init__ (   self,
  resolution,
  max_possible 
)

Definition at line 27 of file histogram.py.

Member Function Documentation

◆ _bucket_for()

def tests.qps.histogram.Histogram._bucket_for (   self,
  val 
)
private

Definition at line 78 of file histogram.py.

◆ add()

def tests.qps.histogram.Histogram.add (   self,
  val 
)

Definition at line 48 of file histogram.py.

◆ get_data()

def tests.qps.histogram.Histogram.get_data (   self)

Definition at line 57 of file histogram.py.

◆ merge()

def tests.qps.histogram.Histogram.merge (   self,
  another_data 
)

Definition at line 68 of file histogram.py.

◆ reset()

def tests.qps.histogram.Histogram.reset (   self)

Definition at line 39 of file histogram.py.

Member Data Documentation

◆ _buckets

tests.qps.histogram.Histogram._buckets
private

Definition at line 37 of file histogram.py.

◆ _count

tests.qps.histogram.Histogram._count
private

Definition at line 34 of file histogram.py.

◆ _lock

tests.qps.histogram.Histogram._lock
private

Definition at line 28 of file histogram.py.

◆ _max

tests.qps.histogram.Histogram._max
private

Definition at line 36 of file histogram.py.

◆ _max_possible

tests.qps.histogram.Histogram._max_possible
private

Definition at line 30 of file histogram.py.

◆ _min

tests.qps.histogram.Histogram._min
private

Definition at line 35 of file histogram.py.

◆ _resolution

tests.qps.histogram.Histogram._resolution
private

Definition at line 29 of file histogram.py.

◆ _sum

tests.qps.histogram.Histogram._sum
private

Definition at line 31 of file histogram.py.

◆ _sum_of_squares

tests.qps.histogram.Histogram._sum_of_squares
private

Definition at line 32 of file histogram.py.

◆ multiplier

tests.qps.histogram.Histogram.multiplier

Definition at line 33 of file histogram.py.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:52