tiny.profiling.host.process
Defined in host.
API (4)
Actions
Public operations.
Values and defaults
Public values and defaults.
Source
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
| Definitions | 5 |
|---|---|
| Public names | 5 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |