trace: add dummy implementation of the tracing object

This commit is contained in:
2026-06-08 10:23:46 +02:00
parent 3676ceb9c4
commit 7c7ef6db6f
4 changed files with 46 additions and 4 deletions
+32
View File
@@ -0,0 +1,32 @@
const std = @import("std");
const PendingTrace = struct {};
pub const Trace = struct {
pub fn init(self: *Trace) void {
_ = self;
}
pub fn deinit(self: *Trace) void {
_ = self;
}
pub fn beginIO(self: *Trace, disk: bool, source: std.builtin.SourceLocation) PendingTrace {
_ = self;
_ = disk;
_ = source;
return .{};
}
pub fn failIO(self: *Trace, pending_trace: PendingTrace, e: anyerror) void {
_ = self;
_ = pending_trace;
_ = e;
}
pub fn completeIO(self: *Trace, pending_trace: PendingTrace, result: anytype) void {
_ = self;
_ = pending_trace;
_ = result;
}
};