MemoryUnit

public enum MemoryUnit : Int32

Enumeration of different resolutions supported by the MemoryDistributionMetricType.

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

  • 1

    Declaration

    Swift

    case byte = 0
  • 2^10

    Declaration

    Swift

    case kilobyte = 1
  • 2^20

    Declaration

    Swift

    case megabyte
  • 2^30

    Declaration

    Swift

    case gigabyte