trace
Trace function calls in a Go program by specifying a regular expression to filter functions. Optionally set package, use eBPF, show stack traces, or attach to a specific process.
Instructions
Trace program execution
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regexp | Yes | Regular expression to match functions to trace | |
| pkg | No | Package to trace (defaults to .) | |
| ebpf | No | Use eBPF for tracing (experimental) | |
| stack | No | Show stack trace with given depth | |
| pid | No | Pid to attach to |