CmdID

CmdID / Commands

arthas-trace

Trace method invoke chain, and output the time cost for each node in the path. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Trace method invoke chain

trace class_pattern method_pattern

Trace method invoke chains and only display invoke information longer than 10 ms

trace class_pattern method_pattern '#cost > 10'

Trace the invoke chain of multiple classes or multiple methods

trace -E class_pattern1|class_pattern2 method_pattern1|method_pattern2|method_pattern3

Track method invoke chains, only display invoke information that exceeds 10 ms, and exit after 5 times

trace class_pattern method_pattern '#cost > 10' -n 5