Package monq.jfa.util

Class Sizeof

java.lang.Object
monq.jfa.util.Sizeof

public class Sizeof extends Object

estimator for the size of data structures. The sizes of individual elements used to compute the overall size of a data structure are estimates only derived on 1.4.2 on a 32bit Linux.

The implementation will be changed to java.lang.instrument.Instrumentation as soon as we switch to Java 5.

:lol:
  • Field Details

  • Method Details

    • charArrayMemEstimate

      public static int charArrayMemEstimate(int numElems)
    • objectArrayMemEstimate

      public static int objectArrayMemEstimate(int numElems)
    • roundUp

      public static int roundUp(int l)