2

I'm looking for a tool that can find methods that never get invoked during runtime in a Java spring boot application. The only thing I could find is https://github.com/crispab/codekvast which seems to be a dead project.

I'm also considering building my own Java agent that simply keeps track of all method invocations and then checks which methods are not invoked by finding all defined methods.

What's the best way to approach this?

2
  • 1
    I don't think that this approach is really useful. I use some programs just one or two times a year. And I have quite restrictive Internet connection settings, so you may never notice that I am using those functions. Commented Aug 9 at 20:01
  • 1
    Basically, the feature you are looking for is called telemetry and there are active projects like github.com/open-telemetry/opentelemetry-java-instrumentation Commented Aug 9 at 20:02

1 Answer 1

1

https://github.com/naver/scavenger is the project built on the idea of codekvast. Please check it out.

2
  • 1
    Its best to sing its praises a bit more. Tell us whats good about it Commented Aug 16 at 10:17
  • More specifically, describe how this product meets the specific needs cited in the Question. Commented Sep 17 at 19:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.