Class RPmallocThreadStatistics.size_use

  • All Implemented Interfaces:
    Enclosing class:

    public static class RPmallocThreadStatistics.size_use
    extends Struct

    Member documentation

    • alloc_current – Current number of allocations
    • alloc_peak – Peak number of allocations
    • alloc_total – Total number of allocations
    • free_total – Total number of frees
    • spans_to_cache – Number of spans transitioned to cache
    • spans_from_cache – Number of spans transitioned from cache
    • spans_from_reserved – Number of spans transitioned from reserved state
    • map_calls – Number of raw memory map calls (not hitting the reserve spans but resulting in actual OS mmap calls)


     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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • size_use

        public size_use​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
      • 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().