Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on March 16, 2016 at 07:43 PM

Section 1 (Java)

import com.sun.btrace.AnyType;
import com.sun.btrace.BTraceUtils;
import com.sun.btrace.annotations.*;

import static com.sun.btrace.BTraceUtils.print;
import static com.sun.btrace.BTraceUtils.println;

@BTrace public class SampleThaumicInfusion {
    @OnMethod(clazz="drunkmafia.thaumicinfusion.common.util.helper.ReflectionLookup"
            , method="findFieldInClass"
            , location=@Location(Kind.RETURN)
    )
    @Sampled(kind = Sampled.Sampler.Const, mean = 1000)
    public static void n(AnyType[] args, @Return Object retval) {
        print("Btrace: ");
        print(args[0]);
        print(" : ");
        println(retval);
    }

    @OnTimer(2*60*1000)
    public static void endProfiling() {
        BTraceUtils.Sys.exit();
    }
}