Class MemoryFootprint

java.lang.Object
org.h2.test.utils.MemoryFootprint

public class MemoryFootprint extends Object
Calculate the memory footprint of various objects.
  • Constructor Details

    • MemoryFootprint

      public MemoryFootprint()
  • Method Details

    • main

      public static void main(String... a)
      Run just this test.
      Parameters:
      a - ignored
    • getObjectSize

      public static long getObjectSize(Object o)
      Get the number of bytes required for the given object. This method only works if the agent is set.
      Parameters:
      o - the object
      Returns:
      the number of bytes required