Skip to documentation
SLOP

tiny.profiling.driver.model

Reference tiny.profiling driver model

Defined in driver.

API (15)

Actions

Public operations.

Types and contracts

Public types and contracts.

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

Source

Source: src/profiling/driver/model.zig

zig
const std = @import("std");const sys = @import("sys");const catalog = @import("../root.zig").catalog;const execute = @import("../root.zig").execute;const host = @import("../root.zig").host;const plan = @import("../root.zig").plan;const perturbation = @import("../root.zig").perturbation;const record = @import("../root.zig").record;pub const Request = struct {    selection: plan.Selection,    run_id: []const u8,    output_dir: []const u8 = record.default_output_dir,    forwarded: []const []const u8 = &.{},    continue_on_failure: bool = false,    host_lanes: host.Options = .{},    execution_scope: execute.Scope = .binary,    warmup_repeat: u32 = 0,    measure_repeat: u32 = 1,    interleave_seed: ?u64 = null,    capture_control: perturbation.Options = .{},    trace_allocations: bool = false,    tracy: bool = false,    control: execute.BenchControl = .{},};pub const Outcome = struct {    paths: record.Paths,    selected: usize,    ran: usize,    failed: usize,    stopped_early: bool,    exit_code: u8,};pub const Memory = struct {    command: std.mem.Allocator,    workload: std.mem.Allocator,};const ProgressOutput = enum {    terminal,    silent,};pub const WorkloadContext = struct {    backing_allocator: std.mem.Allocator,    process_io: std.Io,    environ_map: ?*const sys.process.Environ.Map,    request: Request,    paths: record.Paths,    metadata: record.Metadata,    zig_command: execute.Zig,    tool_probe: host.ToolProbe,    progress_output: ProgressOutput,};pub const PreparedWorkload = struct {    execution_plan: execute.Plan,    runtime: catalog.Runtime,    child_environment: ?sys.process.Environ.Map,    paths: record.WorkloadPaths,    absolute_root: []const u8,    wrapped: host.Wrapped,    command: []const u8,};pub const CompletedWorkload = struct {    setup: ?record.Setup,    prepare: ?execute.CommandResult,    setup_failed: bool,    prepare_failed: bool,    warmup_failed: bool,    reset_failed: bool,    execution: execute.Result,    executions: []record.MeasuredExecution,    host_state_windows: []const host.state.Window,    warmup_executions: []const execute.Result,    resets: []const record.Reset,    perturbation: ?perturbation.Measurement,};pub const MeasuredWorkload = struct {    aggregate: execute.Result,    executions: []record.MeasuredExecution,    host_state_windows: []const host.state.Window,    reset_failed: bool = false,    perturbation: ?perturbation.Measurement = null,};pub const MeasuredCommand = struct {    execution: execute.Result,    host_state: ?host.state.Window,    measured: bool,};pub const WarmupWorkload = struct {    executions: []const execute.Result,    failure: ?execute.Result = null,    reset_failed: bool = false,};pub const SetupOutcome = struct {    setup: ?record.Setup,    failure: ?execute.Result,};pub const Initialization = struct {    setup: ?record.Setup,    prepare: ?execute.CommandResult,    setup_failed: bool,    prepare_failed: bool,    failure: ?execute.Result,};pub const InterleavedWorkload = struct {    arena: std.heap.ArenaAllocator,    workload: catalog.Workload,    index: usize,    prepared: PreparedWorkload,    started_unix_ns: i128,    finished_unix_ns: i128,    setup: ?record.Setup,    prepare: ?execute.CommandResult,    setup_failed: bool,    prepare_failed: bool,    warmup_attempted: bool = false,    warmup_failed: bool = false,    reset_failed: bool = false,    execution: ?execute.Result,    executions: std.ArrayList(record.MeasuredExecution) = .empty,    host_state_windows: std.ArrayList(host.state.Window) = .empty,    warmup_executions: []const execute.Result = &.{},    resets: std.ArrayList(record.Reset) = .empty,    pub fn failed(self: InterleavedWorkload) bool {        const result = self.execution orelse return false;        return result.exit_code != 0;    }    pub fn completed(self: InterleavedWorkload) CompletedWorkload {        return .{            .setup = self.setup,            .prepare = self.prepare,            .setup_failed = self.setup_failed,            .prepare_failed = self.prepare_failed,            .warmup_failed = self.warmup_failed,            .reset_failed = self.reset_failed,            .execution = self.execution.?,            .executions = self.executions.items,            .host_state_windows = self.host_state_windows.items,            .warmup_executions = self.warmup_executions,            .resets = self.resets.items,            .perturbation = null,        };    }};pub const RunProgress = struct {    ran: usize,    failures: usize,    first_failure_exit_code: u8,    stopped_early: bool,};

Source: src/profiling/driver/root.zig:6

zig
pub const model = @import("model.zig");

Audit

Definitions16
Public names19
Members90
Version26.7.0
Revisiondaab053ee433