@Retention(value=RUNTIME) public @interface ObjectSizeCalculatorIgnore
Target use is to ignore object references not of interest. For example one can annotate Thread instances, to avoid measuring the whole Heap due to the ClassLoader reference in the Thread class. Another use case when one is doing multiple measurements which share references: Annotate one of the references to avoid duplicated object counting.
References are counted with the size of a reference in the memory model. Primitive types cannot be ignored, they are always counted.
public abstract String reason
Copyright © 2018 trivago. All rights reserved.