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

@BTrace
public class Trace {
	@OnMethod(clazz = "%CLASS_NAME%", method = "%METHOD_NAME%")
	public static void traceCall() {
		println(strcat(strcat(strcat("CALL:", name(probeClass())), "#"),
				probeMethod()));
	}

	@OnMethod(clazz = "%CLASS_NAME%", method = "%METHOD_NAME%", location = @Location(Kind.RETURN))
	public static void traceReturn() {
		println(strcat(strcat(strcat("RETURN:", name(probeClass())), "#"),
				probeMethod()));
	}
}
