Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy-to-use performance and memory .NET profiler for Windows, Linux and macOS.
Secure and easy profiling in cloud, containers and clustered environments.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Callback method parameter annotation @Params

Callback parameter annotated with @Params provides the values of all parameters passed to the instrumented method.

In which callbacks can be used

Parameter annotated with @Params can be used in any callback.

Declaration type

Parameter annotated with @Params must be declared as java.lang.Object[].


Parameter annotated with @Params will be assigned with a newly created array with length equal to the number of method parameters. First parameter is stored in the array at index 0, second parameter - at index 1 etc. If instrumented method has no parameters, parameter annotated with @Params will be assigned with an empty array.

Parameters of reference types will be stored as is. Parameters of primitive types will be stored boxed.

Note, that each time a callback with parameter annotated with @Params is invoked, a new array is created. For performance considerations, use @Param({number}) instead whenever possible.

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.