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

Runtime and logged compute match. Complete log-based attribution.

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

SUCCESS

4NwnA4HWZurKyXWNowJwYmb9CwX4gBKzwQKov1ExMf8M

Inclusive compute

17,317 CU

Exclusive compute

4,971 CU

Depth

1

Direct children

2

Share of total exclusive compute28.71%

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)

1Program 4NwnA4HWZurKyXWNowJwYmb9CwX4gBKzwQKov1ExMf8M invoke [1]
2Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
3Program log: Instruction: TransferChecked
4Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 6173 of 1397184 compute units
5Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
6Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
7Program log: Instruction: TransferChecked
8Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 6173 of 1389255 compute units
9Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
10Program log: CPI execution completed
11Program 4NwnA4HWZurKyXWNowJwYmb9CwX4gBKzwQKov1ExMf8M consumed 17317 of 1400000 compute units
12Program 4NwnA4HWZurKyXWNowJwYmb9CwX4gBKzwQKov1ExMf8M success

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.