arthas_trace
Trace method execution paths and timing in a Java process to diagnose performance issues. Returns results inline or a job ID for async retrieval.
Instructions
Trace method execution path and timing. Runs in background; waits up to awaitMs for completion and returns results inline if done, otherwise returns a job ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of traces (default: 5) | |
| awaitMs | No | Wait up to this many ms for inline completion (default: 5000; pass 0 for pure async) | |
| skipJdk | No | Skip JDK methods | |
| timeout | No | Timeout in ms | |
| condition | No | Conditional expression | |
| classPattern | Yes | Class name pattern | |
| methodPattern | Yes | Method name pattern |