get_stacks
Retrieve resolved call stacks for CUDA and driver operations, returning top stacks by frequency with symbols, source files, and timing to identify the code path causing an operation.
Instructions
Get resolved call stacks for CUDA/driver operations. Returns top stacks by frequency with symbol names, source files, and timing stats. One call answers 'what code path caused this operation?' For older DBs without resolved symbols, falls back to raw IPs (hex addresses).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Source filter: 1=CUDA, 3=HOST, 4=DRIVER | |
| op | No | Operation name (e.g. cudaMalloc, cuLaunchKernel) | |
| pid | No | Process ID filter | |
| since | No | Time window relative to NOW (e.g. 5m, 1h). Omit for saved/offline DBs to query ALL data. | |
| limit | No | Max stacks returned (default 10) | |
| tsc | No | telegraphic compression (default: true) |