arthas-trace
Verified for current stable LTS
Arthas Trace Command: Trace Method Invoke Chain With Cost
An engineer would use the `trace` command in Arthas to monitor the performance and execution path of a specific method within a Java application, highlighting invocations that exceed a specified cost threshold, such as in diagnosing performance bottlenecks. Exact CLI syntax to trace method invoke chain with cost using Arthas Trace.
When to use this: An engineer would use the `trace` command in Arthas to monitor the performance and execution path of a specific method within a Java application, highlighting invocations that exceed a specified cost threshold, such as in diagnosing performance bottlenecks.
Command Syntax
trace <class-pattern> <method-pattern> '#cost > <10>' trace <class-pattern> <method-pattern> '#cost > <10>' Command Breakdown
trace is the base executable for this command.
FAQ
Purpose: Exact syntax to trace method invoke chain with cost using Arthas Trace.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Arthas Trace Command: Track Method Invoke Chain Exceeding Cost And Limit
trace <class-pattern> <method-pattern> '#cost > <10>' -n 5 Arthas Trace Command: Trace Method Invoke Chain trace <class-pattern> <method-pattern> Arthas Trace Command: Trace Multiple Classes Or Methods trace -E <class-pattern1>|<class-pattern2> <method-pattern1>|<method-pattern2>|<method-pattern3> Arthas Trace Command: Trace Method Invoke Longer Than 10ms trace <class-pattern> <method-pattern> '#cost > <10>' Arthas Trace Command: Trace Invoke Chain Above 10ms With Limit trace <class-pattern> <method-pattern> '#cost > <10>' -n 5