Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Now, the `test0` account can transfer tokens by running:
aztec-wallet send transfer -ca token --args accounts:test1 40 -f accounts:test0
```

Instead of sending the above transaction, you can simulate it by running the `simulate` command with the same parameters, and then add a `--profile` flag to profile the gate count of each private function in the transaction.
Instead of sending the above transaction, you can profile it by running the `profile` command with the same parameters.


```bash
aztec-wallet simulate --profile transfer -ca token --args accounts:test1 40 -f accounts:test0
aztec-wallet profile transfer -ca token --args accounts:test1 40 -f accounts:test0
```

This will print the following results after some time:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ aztec-wallet simulate --from master_yoda --contract-address jedi_order --args "l

### Profile

Simulates a transaction with profiling enabled. This allows you to get the gate count of each private function in the transaction. Read more about profiling [here](../../guides/smart_contracts/profiling_transactions.md).
This allows you to get the gate count of each private function in the transaction. Read more about profiling [here](../../guides/smart_contracts/profiling_transactions.md).

#### Example

```bash
aztec-wallet simulate --profile --from master_yoda --contract-address jedi_order --args "luke_skywalker" train_jedi
aztec-wallet profile --from master_yoda --contract-address jedi_order --args "luke_skywalker" train_jedi
```

### Bridge Fee Juice
Expand Down