Class HeapUtils

java.lang.Object
com.gigaspaces.heap.HeapUtils

public class HeapUtils extends Object
Utility class for analyzing heap dumps
Since:
15.2
Author:
Niv Ingberg
  • Constructor Details

    • HeapUtils

      public HeapUtils()
  • Method Details

    • isSameClass

      public static boolean isSameClass(org.netbeans.lib.profiler.heap.Instance instance, String className)
    • getStringValue

      public static String getStringValue(org.netbeans.lib.profiler.heap.Instance instance)
    • getPrimitiveArrayBytes

      public static byte[] getPrimitiveArrayBytes(org.netbeans.lib.profiler.heap.PrimitiveArrayInstance instance)
    • getPrimitiveArrayChars

      public static char[] getPrimitiveArrayChars(org.netbeans.lib.profiler.heap.PrimitiveArrayInstance instance)
    • forEachInstance

      public static void forEachInstance(org.netbeans.lib.profiler.heap.JavaClass javaClass, java.util.function.Consumer<org.netbeans.lib.profiler.heap.Instance> consumer)
    • getFields

      public static Iterable<org.netbeans.lib.profiler.heap.Field> getFields(org.netbeans.lib.profiler.heap.JavaClass javaClass)
    • getNestedValue

      public static org.netbeans.lib.profiler.heap.Instance getNestedValue(org.netbeans.lib.profiler.heap.Instance instance, String... path)
    • walk

      public static void walk(org.netbeans.lib.profiler.heap.Instance instance, FieldProcessor processor)
    • analyzeDiff

      public static long analyzeDiff(java.util.function.Supplier<Object> factory) throws IOException
      Throws:
      IOException
    • analyzeDiff

      public static long analyzeDiff(java.util.function.Supplier<Object> factory, boolean verbose) throws IOException
      Throws:
      IOException
    • analyzeDiff

      public static long analyzeDiff(java.util.function.Supplier<Object> factory, boolean verbose, String dumpsFolder) throws IOException
      Throws:
      IOException