Profile a canister call with RSX IC Profiler
Find the cost of a PocketIC call, from its complete instruction bill to Wasm blocks, API charges and memory pages. The browser viewer, CLI and MCP expose the same capture for people and agents.
Install RSX Profiler
RSX Profiler packages a PocketIC server with instruction tracing, memory tracing, and whole-system profiling. The v16.1.0-profiler.1 release includes the Linux x86-64 server, browser viewer, and agent tools. It requires glibc 2.39 or newer. The setup guide shows how to verify the download and capture a run with your prepared Wasm and generated Wire client.






Start with the full bill
Reproduce a slow call in PocketIC and use its execution total as the starting point. The ledger includes charged Wasm instructions alongside system API and memory charges. In the ledger transfer capture, the Compute view sizes tiles by recorded block charge so you can see which parts of a call dominate. The separate Heavy16 capture shows round 317 in the Rounds view, including canister passes, execution budgets and the dirty-memory gate that can limit what fits in a round.
Follow a charge to the source
A bounded trace gives you the Wasm blocks behind the charge. Keep the installed Wasm identity and the matching optimized build artifacts together. The RSX symbolizer uses the original body map and DWARF information to recover source locations for that exact build. Wasm charges can be collected at block boundaries, so use a source location to find the charged region and review the surrounding operations.
For a layout change, inspect the memory evidence separately. A before-and-after diff shows bytes that differ at the two snapshots. A read mask, when enabled, shows which bytes were read, and dirty-page tracking can show a write even when the original bytes were restored.
Give agents a capture they can check
The browser viewer is useful for a visual pass. The CLI and MCP let an agent pull the same evidence into its analysis. Record which messages and rounds were captured, check for truncation or dropped records, and repeat the same scenario with the same instrumentation when comparing two builds. That gives the agent a measurable change to explain.