simulator: add setTraceOutputFile to enable tracing and specify the output file

This commit is contained in:
2026-06-08 11:00:49 +02:00
parent 4b2c103e71
commit a8ac2773f9
+4
View File
@@ -57,6 +57,10 @@ pub fn deinit(self: *Simulator) void {
self.trace.deinit(); self.trace.deinit();
} }
pub fn setTraceOutputFile(self: *Simulator, path: []const u8) !void {
try self.trace.setOutputFile(path);
}
pub fn addExecutable(self: *Simulator, name: []const u8, entry: EntryPoint) Allocator.Error!void { pub fn addExecutable(self: *Simulator, name: []const u8, entry: EntryPoint) Allocator.Error!void {
try self.executables.append(self.gpa, ExecutableName { try self.executables.append(self.gpa, ExecutableName {
.name = name, .name = name,