local_object_size
mlte/measurement/storage/local_object_size.py
Storage capacity measurement for locally-stored objects.
LocalObjectSize
Bases: Measurement
Measure the size of a locally-stored object.
Source code in mlte/measurement/storage/local_object_size.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
__call__(path)
Compute the size of the object at path
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str
|
The path to the object |
required |
Returns:
Type | Description |
---|---|
Integer
|
The size of the object, in bytes |
Source code in mlte/measurement/storage/local_object_size.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
__init__(identifier)
Initialize a new LocalObjectSize measurement.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier
|
str
|
A unique identifier for the measurement |
required |
Source code in mlte/measurement/storage/local_object_size.py
17 18 19 20 21 22 23 |
|
value()
classmethod
Returns the class type object for the Value produced by the Measurement.
Source code in mlte/measurement/storage/local_object_size.py
52 53 54 55 |
|