@@ -0,0 +1,1926 @@
+import com.sun.btrace.AnyType;%0Aimport com.sun.btrace.BTraceUtils;%0Aimport com.sun.btrace.BTraceUtils.Aggregations;%0Aimport com.sun.btrace.aggregation.Aggregation;%0Aimport com.sun.btrace.aggregation.AggregationFunction;%0Aimport com.sun.btrace.annotations.BTrace;%0Aimport com.sun.btrace.annotations.Kind;%0Aimport com.sun.btrace.annotations.Location;%0Aimport com.sun.btrace.annotations.OnMethod;%0A%0Aimport java.util.Deque;%0A%0Aimport static com.sun.btrace.BTraceUtils.Numbers.unbox;%0Aimport static com.sun.btrace.BTraceUtils.addLast;%0A%0A@BTrace%0Apublic class ArraysCopyOf %7B%0A    private static Aggregation count = Aggregations.newAggregation(AggregationFunction.COUNT);%0A    private static Aggregation max = Aggregations.newAggregation(AggregationFunction.MAXIMUM);%0A    private static Deque%3CAggregation%3E aggregations = BTraceUtils.Collections.newDeque();%0A%0A    static %7B%0A        addLast(aggregations, max);%0A        addLast(aggregations, count);%0A    %7D%0A%0A    // javap ./subprojects/core/build/classes/main/org/gradle/api/internal/changedetection/state/InMemoryTaskArtifactCache%5C$1.class%0A    @OnMethod(%0A            clazz = %22java.util.Arrays%22,%0A            method = %22copyOf%22%0A    )%0A    public static void arraysCopyOf(AnyType%5B%5D args) %7B%0A        Object newSizeArg = args%5B1%5D;%0A        int newSize = unbox((Integer) newSizeArg);%0A        Aggregations.addToAggregation(max, newSize);%0A        Aggregations.addToAggregation(count, 1L);%0A    %7D%0A%0A    @OnMethod(clazz = %22org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController%22,%0A            method = %22run%22,%0A            location = @Location(Kind.RETURN))%0A    public static void afterBuild() %7B%0A        BTraceUtils.println(%22------------ AFTER BUILD -------------------------%22);%0A        Aggregations.printAggregation(%22ArraysCopyOf%22, %22%251$s %252$s %253$s%22, aggregations);%0A        BTraceUtils.println(%22--------------------------------------------------%22);%0A        Aggregations.clearAggregation(count);%0A    %7D%0A%7D%0A

check array resizings