Call trace in java

前端 未结 8 2186
野趣味
野趣味 2020-12-05 11:38

Is there a way to output a call trace for a particular thread in java?

I do not want a stack trace. I would like a sequence of calls on each object for tracing.

8条回答
  •  天涯浪人
    2020-12-05 11:51

    Runtime.traceMethodCalls(), which prints a line for each method call of all objects in all threads

提交回复
热议问题