new AgentBuilder.Default()
.disableClassFormatChanges()
.with(AgentBuilder.RedefinitionStrategy.RETRANSFORMATION)
.type(typeDescription -> targetClassSet.contains(typeDescription.getName()))
.transform((b, td, cl, m) ->
b.method(ElementMatchers.any()
.and(ElementMatchers.not(ElementMatchers.isAbstract()))
.and(ElementMatchers.not(ElementMatchers.isNative())))
.intercept(Advice.to(ProfilerAdvice.class).inline(false))
)
.installOn(inst);
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)