Class RPmallocThreadStatistics.span_use

All Implemented Interfaces:
Pointer
Enclosing class:
RPmallocThreadStatistics

public static class RPmallocThreadStatistics.span_use extends Struct<RPmallocThreadStatistics.span_use>

Layout


 struct {
     size_t current();
     size_t peak();
     size_t to_global();
     size_t from_global();
     size_t to_cache();
     size_t from_cache();
     size_t to_reserved();
     size_t from_reserved();
     size_t map_calls();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • CURRENT

      public static final int CURRENT
      The struct member offsets.
    • PEAK

      public static final int PEAK
      The struct member offsets.
    • TO_GLOBAL

      public static final int TO_GLOBAL
      The struct member offsets.
    • FROM_GLOBAL

      public static final int FROM_GLOBAL
      The struct member offsets.
    • TO_CACHE

      public static final int TO_CACHE
      The struct member offsets.
    • FROM_CACHE

      public static final int FROM_CACHE
      The struct member offsets.
    • TO_RESERVED

      public static final int TO_RESERVED
      The struct member offsets.
    • FROM_RESERVED

      public static final int FROM_RESERVED
      The struct member offsets.
    • MAP_CALLS

      public static final int MAP_CALLS
      The struct member offsets.
  • Constructor Details

    • span_use

      public span_use(ByteBuffer container)
      Creates a span_use instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<RPmallocThreadStatistics.span_use>
    • current

      public long current()
      Currently used number of spans
    • peak

      public long peak()
      High water mark of spans used
    • to_global

      public long to_global()
      Number of spans transitioned to global cache
    • from_global

      public long from_global()
      Number of spans transitioned from global cache
    • to_cache

      public long to_cache()
      Number of spans transitioned to thread cache
    • from_cache

      public long from_cache()
      Number of spans transitioned from thread cache
    • to_reserved

      public long to_reserved()
      Number of spans transitioned to reserved state
    • from_reserved

      public long from_reserved()
      Number of spans transitioned from reserved state
    • map_calls

      public long map_calls()
      Number of raw memory map calls (not hitting the reserve spans but resulting in actual OS mmap calls)
    • create

      public static RPmallocThreadStatistics.span_use create(long address)
      Returns a new span_use instance for the specified memory address.
    • createSafe

      @Nullable public static RPmallocThreadStatistics.span_use createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static RPmallocThreadStatistics.span_use.Buffer create(long address, int capacity)
      Create a RPmallocThreadStatistics.span_use.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      @Nullable public static RPmallocThreadStatistics.span_use.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • ncurrent

      public static long ncurrent(long struct)
      Unsafe version of current().
    • npeak

      public static long npeak(long struct)
      Unsafe version of peak().
    • nto_global

      public static long nto_global(long struct)
      Unsafe version of to_global().
    • nfrom_global

      public static long nfrom_global(long struct)
      Unsafe version of from_global().
    • nto_cache

      public static long nto_cache(long struct)
      Unsafe version of to_cache().
    • nfrom_cache

      public static long nfrom_cache(long struct)
      Unsafe version of from_cache().
    • nto_reserved

      public static long nto_reserved(long struct)
      Unsafe version of to_reserved().
    • nfrom_reserved

      public static long nfrom_reserved(long struct)
      Unsafe version of from_reserved().
    • nmap_calls

      public static long nmap_calls(long struct)
      Unsafe version of map_calls().