Skip to main content

RunningCost

@midnight-ntwrk/onchain-runtime v2.0.1


@midnight-ntwrk/onchain-runtime / RunningCost

Type Alias: RunningCost

type RunningCost: {
bytesDeleted: bigint;
bytesWritten: bigint;
computeTime: bigint;
readTime: bigint;
};

A running tally of synthetic resource costs.

Type declaration

bytesDeleted

bytesDeleted: bigint;

The number of (modelled) bytes deleted.

bytesWritten

bytesWritten: bigint;

The number of (modelled) bytes written.

computeTime

computeTime: bigint;

The amount of (modelled) time spent in single-threaded compute, measured in picoseconds.

readTime

readTime: bigint;

The amount of (modelled) time spent reading from disk, measured in picoseconds.