Skip to documentation
SLOP

tiny.machine.Usage

Reference tiny.machine Usage

Defined in profile.capacity.

A requested value per bounded resource, held as one fixed array with a getter and a setter so a caller fills one in to have a whole set of requests checked at once.

API (3)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callsprofile.capacityUsage
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/machine/src/profile/capacity.zig:24

zig
/// A requested value per bounded resource, held as one fixed array with a getter/// and a setter so a caller fills one in to have a whole set of requests checked/// at once. Every value starts at zero.pub const Usage = struct {    values: [std.meta.tags(Capacity).len]u32 = @splat(0),    pub fn get(self: Usage, kind: Capacity) u32 {        return self.values[@backingInt(kind)];    }    pub fn set(self: *Usage, kind: Capacity, value: u32) void {        self.values[@backingInt(kind)] = value;    }};

Source: lib/machine/src/root.zig:108

zig
pub const Usage = profile.Usage;

Also reachable as

profile.Usage.

Audit

Definitions3
Public names9
Members1
Version26.7.0
Revisiondaab053ee433