简体   繁体   中英

Monitor every method being called

I have a particularly complex Hadoop code base with a lot of reflection that I'm looking at.

Is there a way to print, debug, or watch every monitor being called in a java process?

Or ideally, in ALL processes running on a machine....

I think BTrace is a good tool which you can use for tracing in Java

BTrace is a safe, dynamic tracing tool for the Java platform. BTrace can be used to dynamically trace a running Java program (similar to DTrace for OpenSolaris applications and OS). BTrace dynamically instruments the classes of the target application to inject tracing code ("bytecode tracing"). Tracing code is expressed in Java programming language.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM