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
2023-01-09 18:36:53 +01:00

15 lines
477 B
Java

package ex9;
import ch.usi.dag.disl.annotation.Before;
import ch.usi.dag.disl.marker.BodyMarker;
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());
}
}