Back to Aptos Core

{{title}}

aptos-move/aptos-gas-profiling/templates/index.html

latest4.6 KB
Original Source

Summary

This summary corresponds to the FeeStatement event emitted by the transaction.

CategoryCostUnitDescription
Execution Gas{{summary-execution-gas}}gas unitsTransient resources for execution, like CPU time or memory
IO Gas{{summary-io-gas}}gas unitsStorage reads and writes
Storage Fee{{summary-storage-fee}}APTCost for new or expanded storage slots
Storage Refund{{summary-storage-refund}}APTRefund for deleted storage slots

Note: Values may differ slightly from the FeeStatement due to rounding.

Flamegraphs

{{#if graph-exec-io}} {{else}} (No execution & IO graph to show.)
{{/if}} {{#if graph-storage}} {{else}} (No storage graph to show.) {{/if}} #

Cost Break-down

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 ({{summary-execution-gas}} gas units)

Execution costs cover transient resources used for executing the transaction, such as CPU time or memory usage.

Intrinsic Cost

{{intrinsic}} gas units{{#if intrinsic-percentage}}, {{intrinsic-percentage}} of execution gas.{{/if}} {{#if keyless}}

Keyless Cost

{{keyless}} gas units, {{keyless-percentage}} of execution gas. {{/if}} {{#if slh_dsa_sha2_128s}}

SLH-DSA-SHA2-128s Cost

{{slh_dsa_sha2_128s}} gas units, {{slh_dsa_sha2_128s-percentage}} of execution gas. {{/if}}

Dependencies

{{#if deps}}

NameSize in BytesCost in Gas UnitsPercentage
{{#each deps}}{{name}}{{size}}{{cost}}
{{/each}}
{{else}} (No dependencies to show. System dependencies are excluded.) {{/if}}

Operations

{{#if ops}}

OperationNumber of HitsCost in Gas UnitsPercentage
{{#each ops}}{{name}}{{hits}}{{cost}}
{{/each}}
{{else}} (No operations to show.) {{/if}}
{{#if methods}}
Methods (gas including children)Number of HitsCost in Gas UnitsPercentage
{{#each methods}}{{name}}{{hits}}{{cost}}
{{/each}}
{{else}} (No methods to show.) {{/if}}
{{#if methods_self}}
Methods (only local gas)Number of HitsCost in Gas UnitsPercentage
{{#each methods_self}}{{name}}{{hits}}{{cost}}
{{/each}}
{{else}} (No methods to show.) {{/if}}

IO ({{summary-io-gas}} gas units)

IO costs cover reading and writing data to storage.

State Reads

{{#if reads}}

Resource NameNumber of HitsCost in Gas UnitsPercentage
{{#each reads}}{{name}}{{hits}}{{cost}}
{{/each}}
{{else}} (No reads to show.) {{/if}}

Transaction Write ⓘ

Cost in Gas UnitsPercentage
{{#with transaction_write}}{{cost}}
{{/with}}

Event Writes

{{#if event_writes}}

Event TypeNumber of HitsCost in Gas UnitsPercentage
{{#each event_writes}}{{name}}{{hits}}{{cost}}
{{/each}}
{{else}} (No event writes to show.) {{/if}}

State Writes

{{#if writes}}

Resource NameNumber of HitsCost in Gas UnitsPercentage
{{#each writes}}{{name}}{{hits}}{{cost}}
{{/each}}
{{else}} (No state writes to show.) {{/if}}

Storage ({{summary-storage-fee}} APT)

The storage fees cover the extended-term storage of states and events and are assessed at a fixed price in APT.

Transaction

{{storage-txn}} APT{{#if storage-txn-percentage}}, {{storage-txn-percentage}} of the total cost for storage.{{/if}}

States

{{#if storage-writes}}

PathCost in APTPercentageRefund in APTPercentage
{{#each storage-writes}}{{name}}{{cost}}{{cost-percentage}}{{refund}}
{{/each}}
{{else}} (No state changes to show.) {{/if}}

Events

{{#if storage-events}}

NameCost in APTPercentage
{{#each storage-events}}{{name}}{{cost}}
{{/each}}
{{storage-event-discount}} {{else}} (No events to show.) {{/if}} #

Memory Usage

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. #

Full Execution Trace

{{#if trace-is-large}}

Large trace ({{trace-line-count}} lines)

Load TraceView Raw

View Raw

{{else}}

View Raw

{{/if}}