aptos-move/aptos-gas-profiling/templates/index.html
This summary corresponds to the FeeStatement event emitted by the transaction.
| Category | Cost | Unit | Description |
|---|---|---|---|
| Execution Gas | {{summary-execution-gas}} | gas units | Transient resources for execution, like CPU time or memory |
| IO Gas | {{summary-io-gas}} | gas units | Storage reads and writes |
| Storage Fee | {{summary-storage-fee}} | APT | Cost for new or expanded storage slots |
| Storage Refund | {{summary-storage-refund}} | APT | Refund for deleted storage slots |
Note: Values may differ slightly from the FeeStatement due to rounding.
{{#if graph-exec-io}} {{else}} (No execution & IO graph to show.)
{{/if}} {{#if graph-storage}} {{else}} (No storage graph to show.) {{/if}} #
The Aptos network charges a transaction in three parts: (1) execution, (2) IO, and (3) storage. Execution and IO are measured in gas units; storage is measured in APT.
Execution costs cover transient resources used for executing the transaction, such as CPU time or memory usage.
{{intrinsic}} gas units{{#if intrinsic-percentage}}, {{intrinsic-percentage}} of execution gas.{{/if}} {{#if keyless}}
{{keyless}} gas units, {{keyless-percentage}} of execution gas. {{/if}} {{#if slh_dsa_sha2_128s}}
{{slh_dsa_sha2_128s}} gas units, {{slh_dsa_sha2_128s-percentage}} of execution gas. {{/if}}
{{#if deps}}
| Name | Size in Bytes | Cost in Gas Units | Percentage |
|---|---|---|---|
| {{#each deps}} | {{name}} | {{size}} | {{cost}} |
| {{/each}} | |||
| {{else}} (No dependencies to show. System dependencies are excluded.) {{/if}} |
{{#if ops}}
| Operation | Number of Hits | Cost in Gas Units | Percentage |
|---|---|---|---|
| {{#each ops}} | {{name}} | {{hits}} | {{cost}} |
| {{/each}} | |||
| {{else}} (No operations to show.) {{/if}} | |||
| {{#if methods}} |
| Methods (gas including children) | Number of Hits | Cost in Gas Units | Percentage |
|---|---|---|---|
| {{#each methods}} | {{name}} | {{hits}} | {{cost}} |
| {{/each}} | |||
| {{else}} (No methods to show.) {{/if}} | |||
| {{#if methods_self}} |
| Methods (only local gas) | Number of Hits | Cost in Gas Units | Percentage |
|---|---|---|---|
| {{#each methods_self}} | {{name}} | {{hits}} | {{cost}} |
| {{/each}} | |||
| {{else}} (No methods to show.) {{/if}} |
IO costs cover reading and writing data to storage.
{{#if reads}}
| Resource Name | Number of Hits | Cost in Gas Units | Percentage |
|---|---|---|---|
| {{#each reads}} | {{name}} | {{hits}} | {{cost}} |
| {{/each}} | |||
| {{else}} (No reads to show.) {{/if}} |
| Cost in Gas Units | Percentage |
|---|---|
| {{#with transaction_write}} | {{cost}} |
| {{/with}} |
{{#if event_writes}}
| Event Type | Number of Hits | Cost in Gas Units | Percentage |
|---|---|---|---|
| {{#each event_writes}} | {{name}} | {{hits}} | {{cost}} |
| {{/each}} | |||
| {{else}} (No event writes to show.) {{/if}} |
{{#if writes}}
| Resource Name | Number of Hits | Cost in Gas Units | Percentage |
|---|---|---|---|
| {{#each writes}} | {{name}} | {{hits}} | {{cost}} |
| {{/each}} | |||
| {{else}} (No state writes to show.) {{/if}} |
The storage fees cover the extended-term storage of states and events and are assessed at a fixed price in APT.
{{storage-txn}} APT{{#if storage-txn-percentage}}, {{storage-txn-percentage}} of the total cost for storage.{{/if}}
{{#if storage-writes}}
| Path | Cost in APT | Percentage | Refund in APT | Percentage |
|---|---|---|---|---|
| {{#each storage-writes}} | {{name}} | {{cost}} | {{cost-percentage}} | {{refund}} |
| {{/each}} | ||||
| {{else}} (No state changes to show.) {{/if}} |
{{#if storage-events}}
| Name | Cost in APT | Percentage |
|---|---|---|
| {{#each storage-events}} | {{name}} | {{cost}} |
| {{/each}} | ||
| {{storage-event-discount}} {{else}} (No events to show.) {{/if}} # |
Peak memory usage during transaction execution: {{peak-memory-usage}}.
Note: This is measured in abstract value size, which does not map 1:1 to bytes. #
{{#if trace-is-large}}
Large trace ({{trace-line-count}} lines)
Load TraceView Raw
View Raw
{{else}}
View Raw
{{/if}}