Relative Content

Tag Archive for javainstrumentationbyte-buddyjavaagents

How to optimize Bytebuddy’s transform time?

My purpose is to hook some functions to implement monitoring. There are about 40 hook points.
I am using the Advice method. When I do the installation of the hitch points, it takes a long time. Through debugging I found that the following function takes a long time. The main reason should be this for-for loop. There are about 27k classes in types. Moreover, I executed the installOn method about 40 times, which took too much time.

is this the right way to add annotation with bytebuddy in java agent?

I want to add an annotation to all methods of some classes in a java agent, I did this and it worked , but I’m not sure if that’s the right way because i saw other examples that i didn’t understand.
I don’t understand the intercept(SuperMethodCall.INSTANCE) ? what does it mean?
I don’t want the class code to change in any way, its not going to be my code , it will be customer’s code.