方法内部调用路径,并输出方法路径上的每个节点上耗时。 另见
arthas
,arthas-watch
. 更多信息:https://arthas.aliyun.com/en/doc/trace.html.
trace {{class-pattern}} {{method-pattern}}
trace {{class-pattern}} {{method-pattern}} '#cost > {{10}}'
trace -E {{class-pattern1|class-patter2}} {{method-pattern1|method-pattern2|method-pattern3}}
trace {{class-pattern}} {{method-pattern}} '#cost > {{10}}' -n 5