Skip to main content

RunningCost

@midnight-ntwrk/compact-runtime v0.14.0


@midnight-ntwrk/compact-runtime / RunningCost

Type Alias: RunningCost

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

A running tally of synthetic resource costs.

Properties

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.