0

I had been thinking a bit about how this could be done.. Some thoughts I had were AOP and JMX.. But are there any libraries that could do something similar to the Rust crate tracing

Particularly useful if you were say trying to make sense of the iterator logic say in Java's ConcurrentHashMap - circa lines 3300. (Traverser, & pushState/recoverState methods).

Are there any similar libraries that allow you to annotate constructors/method calls and fire off events, that a listener could collate and aggregate back for you in the Java sphere that anyone knows of?

3
  • What could be a cause for a downvote here? – JGFMK Sep 1 '20 at 14:53
  • So, basically, you want to trace the control flow, which functions are entered in what scope and order? – kutschkem Sep 2 '20 at 7:46
  • Yes exactly. Also dump out variables.. and hopefully group them by what thread they belong to. That way I can get my head around the behaviour of the multi-threaded code. – JGFMK Sep 2 '20 at 11:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.