|
|
2 anos atrás | |
|---|---|---|
| .. | ||
| sources | f224486ae2 Aptos improvements (#1079) | 2 anos atrás |
| Move.toml | f224486ae2 Aptos improvements (#1079) | 2 anos atrás |
| README.md | f224486ae2 Aptos improvements (#1079) | 2 anos atrás |
You can compile and run a simple script in this package to profile gas consumption on a deployed pyth contract. Here are the steps:
aptos move compile to compile the scriptRun the following to simulate the transaction and create a gas profile:
aptos move run-script --compiled-script-path build/Profiler/bytecode_scripts/main.mv --args hex:<update_data_payload_in_hex> --profile-gas
Open the created svg files in the gas-profiling folder to inspect gas consumption by each module and function