Skip to documentation
SLOP

tiny.profiling.host.process

Reference tiny.profiling host process

Defined in host.

API (4)

Actions

Public operations.

Values and defaults

Public values and defaults.

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

Source

Called byCallsNo direct callsdriver.validationvalidateMeasureRepeattest; no linksrc.profiling.host.processtest: profiling host process repetiti...private; no linksrc.profiling.optionsparseCounterRepeatprivate; no linksrc.profiling.optionsparseMeasureRepeathost.processvalidRepeat
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callsdriver.validationvalidateRequesttest; no linksrc.profiling.host.processtest: profiling host process warmup r...private; no linksrc.profiling.optionsparseWarmupRepeathost.processvalidWarmupRepeat
Static calls · unresolved targets: 0 · external targets: 0.

Source: src/profiling/host/process.zig

zig
const std = @import("std");pub const max_executions: usize = 100;pub const max_repeat: u32 = @intCast(max_executions);pub fn validRepeat(value: u32) bool {    return value > 0 and value <= max_repeat;}pub fn validWarmupRepeat(value: u32) bool {    return value <= max_repeat;}test "profiling host process repetitions are bounded" {    try std.testing.expect(!validRepeat(0));    try std.testing.expect(validRepeat(1));    try std.testing.expect(validRepeat(max_repeat));    try std.testing.expect(!validRepeat(max_repeat + 1));}test "profiling host process warmup repetitions allow zero" {    try std.testing.expect(validWarmupRepeat(0));    try std.testing.expect(validWarmupRepeat(1));    try std.testing.expect(validWarmupRepeat(max_repeat));    try std.testing.expect(!validWarmupRepeat(max_repeat + 1));}

Source: src/profiling/host/root.zig:7

zig
pub const process = runtime.process;

Audit

Definitions5
Public names5
Members0
Version26.7.0
Revisiondaab053ee433