EXECUTION INTELLIGENCE
See where your compute goes.
Inspect nested Solana program invocations, explore inclusive and exclusive compute consumption, and identify expensive execution paths.
The default profile is a real CUWatch experiment executing two SPL Token transfers through a parent program.
ACTIVE PROFILE
cpi-double.json
cpi-demo / 2_transfers
CUWatch execution profiles, up to 5 MB. Files are processed locally in your browser.
Runtime compute
17,317
Invocations
3
Maximum depth
2
Logged compute: 17,317 CU | Execution: Success
Compute flame graph
Frame widths represent inclusive compute consumption, not elapsed time. Empty space beneath a parent represents compute not attributed to its children. Select a frame to inspect its details.
SELECTED INVOCATION
cpi-demo
SUCCESS4NwnA4HWZurKyXWNowJwYmb9CwX4gBKzwQKov1ExMf8M
Inclusive compute
17,317 CU
Exclusive compute
4,971 CU
Depth
1
Direct children
2
Invocation tree
Compute by program
Exclusive compute is aggregated across all invocations of each program to avoid double-counting nested calls.
SPL Token
2 calls · 0 failed
12,346 CU
71.29%
cpi-demo
1 calls · 0 failed
4,971 CU
28.71%
Runtime logs (12)
Profile provenance
- Engine
- mollusk
- Schema version
- 1
- Program SHA-256
- 077fa92cb889a365dcf75074c2a2e3719e4f3ee3281c7ee739bea602d344c23b
Generate an execution profile
Execute a configured Solana scenario using the CUWatch Rust CLI, then upload the generated profile JSON above.
cargo run -- profile cuwatch.toml \ --scenario multiple_logs \ --output execution-profile.json # Reproduce the CPI demonstration cargo run -- profile-cpi \ programs/cpi-demo/target/deploy/cpi_demo.so \ --transfers 2 \ --output cpi-profile.json
Commands assume you are in the CUWatch repository with the relevant SBF programs already compiled.
Understanding compute attribution
Inclusive compute includes nested program invocations. Exclusive compute subtracts the inclusive consumption of immediate children, preventing double-counting.
Attribution is derived from runtime logs, not instruction-level VM instrumentation. Parent-exclusive compute may include CPI setup and other runtime overhead. Uploaded profiles are checked for internal consistency, not independently authenticated.