TileStatstype
What a tile store has done.
Import it
import type { TileStats } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface TileStats {
held: number;
heldBytes: number;
inFlight: number;
queued: number;
requested: number;
failed: number;
refused: number;
evicted: number;
}
Members
| Name | Type | Description |
|---|---|---|
held | number | Tiles held, and their bytes: |
heldBytes | number | |
inFlight | number | Loads running now, and loads waiting for a free place. |
queued | number | |
requested | number | Loads started since the store was made: the number a test reads to prove nothing is sent at rest. |
failed | number | Tiles that failed to load, came back empty, or reported a size that is not a number. They are never held or drawn. |
refused | number | Tiles that arrived and did not fit, because every tile held was needed by the view. They are not held; the view draws what it holds. |
evicted | number | Tiles let go to make room. |
Examples
import type { TileStats } from "./data-door.ts";
const full = (stats: TileStats): boolean => stats.refused > 0;