Class RPmallocThreadStatistics.size_use

All Implemented Interfaces:
Pointer
Enclosing class:
RPmallocThreadStatistics

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

 struct {
     size_t alloc_current;
     size_t alloc_peak;
     size_t alloc_total;
     size_t free_total;
     size_t spans_to_cache;
     size_t spans_from_cache;
     size_t spans_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.
    • ALLOC_CURRENT

      public static final int ALLOC_CURRENT
      The struct member offsets.
    • ALLOC_PEAK

      public static final int ALLOC_PEAK
      The struct member offsets.
    • ALLOC_TOTAL

      public static final int ALLOC_TOTAL
      The struct member offsets.
    • FREE_TOTAL

      public static final int FREE_TOTAL
      The struct member offsets.
    • SPANS_TO_CACHE

      public static final int SPANS_TO_CACHE
      The struct member offsets.
    • SPANS_FROM_CACHE

      public static final int SPANS_FROM_CACHE
      The struct member offsets.
    • SPANS_FROM_RESERVED

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

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

    • size_use

      public size_use(ByteBuffer container)
      Creates a size_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.size_use>
    • alloc_current

      public long alloc_current()
      Returns:
      the value of the alloc_current field.
    • alloc_peak

      public long alloc_peak()
      Returns:
      the value of the alloc_peak field.
    • alloc_total

      public long alloc_total()
      Returns:
      the value of the alloc_total field.
    • free_total

      public long free_total()
      Returns:
      the value of the free_total field.
    • spans_to_cache

      public long spans_to_cache()
      Returns:
      the value of the spans_to_cache field.
    • spans_from_cache

      public long spans_from_cache()
      Returns:
      the value of the spans_from_cache field.
    • spans_from_reserved

      public long spans_from_reserved()
      Returns:
      the value of the spans_from_reserved field.
    • map_calls

      public long map_calls()
      Returns:
      the value of the map_calls field.
    • create

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

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

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

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

      public static long nalloc_current(long struct)
      Unsafe version of alloc_current().
    • nalloc_peak

      public static long nalloc_peak(long struct)
      Unsafe version of alloc_peak().
    • nalloc_total

      public static long nalloc_total(long struct)
      Unsafe version of alloc_total().
    • nfree_total

      public static long nfree_total(long struct)
      Unsafe version of free_total().
    • nspans_to_cache

      public static long nspans_to_cache(long struct)
      Unsafe version of spans_to_cache().
    • nspans_from_cache

      public static long nspans_from_cache(long struct)
      Unsafe version of spans_from_cache().
    • nspans_from_reserved

      public static long nspans_from_reserved(long struct)
      Unsafe version of spans_from_reserved().
    • nmap_calls

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