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(strcat(str(timeMillis()), " - CALL:"), name(probeClass())), "#"),
				probeMethod()));
	}

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