This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
AJP/DiSLProject2022/src-profiler/ex9/Instrumentation.java

16 lines
539 B
Java

package ex9;
import ch.usi.dag.disl.annotation.Before;
import ch.usi.dag.disl.marker.BodyMarker;
import ch.usi.dag.disl.staticcontext.InvocationStaticContext;
import ch.usi.dag.disl.staticcontext.MethodStaticContext;
public class Instrumentation {
@Before(marker = BodyMarker.class,
guard = IsNotConstructorOrStaticInitializerGuard.class,
scope = "ex9.MainThread.*")
static void logCall(final MethodStaticContext isc) {
Profiler.logCall(Thread.currentThread(), isc.thisMethodFullName());
}
}