You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/docs/guides/developer_guides/smart_contracts/profiling_transactions.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ In this guide, we will look at how to profile the private execution of a transac
24
24
25
25
The profiling tool is integrated into the `aztec-wallet`.
26
26
27
-
In this example, we will profile a simple "private token transfer" transaction using the [transfer_in_private](https://github.com/AztecProtocol/aztec-packages/blob/master/noir-projects/noir-contracts/contracts/token_contract/src/main.nr#L376) method in the token contract.
27
+
In this example, we will profile a simple "private token transfer" transaction which uses the [transfer](https://github.com/AztecProtocol/aztec-packages/blob/master/noir-projects/noir-contracts/contracts/token_contract/src/main.nr#L269) method in the token contract.
28
28
29
29
Let's deploy the necessary account and token contracts first:
30
30
@@ -42,13 +42,13 @@ Now, the `user` can transfer tokens by running:
aztec-wallet send transfer -ca token --args accounts:user accounts:owner 100 -f user
46
46
```
47
47
48
48
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.
Here you can see the gate count of each private function call in the transaction along with the kernel circuits needed in between, and the total gate count.
0 commit comments