glean / mozilla.telemetry.glean.private / MemoryUnit

MemoryUnit

enum class MemoryUnit

Enumeration of different resolutions supported by the MemoryDistribution metric type.

These use the power-of-2 values of these units, that is, Kilobyte is pedantically a Kibibyte.

Enum Values

Byte

Byte: 1 byte

Kilobyte

Kilobyte: 2^10 bytes

Megabyte

Megabyte: 2^20 bytes

Gigabyte

Gigabyte: 2^30 bytes