Annotation Type Footprint


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface Footprint
    Annotates a method whose return value is an object whose total memory footprint is to be measured.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<?>[] exclude
      Optionally ignore instances of the specified types (including subclasses) when measuring.
    • Element Detail

      • exclude

        Class<?>[] exclude
        Optionally ignore instances of the specified types (including subclasses) when measuring. For example, @Footprint(ignore = Element.class) public Set<Element> set() {...} would measure the size of the set while ignoring the size of the elements.
        Default:
        {}