@@ -0,0 +1,1243 @@
+import com.sun.btrace.annotations.BTrace;%0Aimport com.sun.btrace.annotations.OnMethod;%0Aimport com.sun.btrace.annotations.OnTimer;%0A%0Aimport java.util.Map;%0Aimport java.util.concurrent.atomic.AtomicInteger;%0A%0Aimport static com.sun.btrace.BTraceUtils.Atomic.incrementAndGet;%0Aimport static com.sun.btrace.BTraceUtils.Atomic.newAtomicInteger;%0Aimport static com.sun.btrace.BTraceUtils.Collections.*;%0Aimport static com.sun.btrace.BTraceUtils.jstackStr;%0Aimport static com.sun.btrace.BTraceUtils.printNumberMap;%0A%0A@BTrace%0Apublic class PatternSetCreation %7B%0A    private static Map%3CString, AtomicInteger%3E histo = newHashMap();%0A%0A    @OnMethod(%0A            clazz = %22org.gradle.api.tasks.util.PatternSet%22,%0A            method = %22%3Cinit%3E%22%0A    )%0A    public static void onPatternSetInit() %7B%0A        String stackTrace = jstackStr(6);%0A        AtomicInteger counter = get(histo, stackTrace);%0A        if (counter == null) %7B%0A            counter = newAtomicInteger(1);%0A            put(histo, stackTrace, counter);%0A        %7D else %7B%0A            incrementAndGet(counter);%0A        %7D%0A    %7D%0A%0A    @OnTimer(5000)%0A    public static void print() %7B%0A        if (size(histo) != 0) %7B%0A            printNumberMap(%22%5Cn%5CnStacktrace Histogram for 'new PatternSet()'%22, histo);%0A        %7D%0A    %7D%0A%7D%0A

Add probe for PatternSet creation