Revert "debug time :cool_sunglasses:"

This reverts commit e4ec8ef32f.
This commit is contained in:
mlugg 2024-10-01 06:02:54 +01:00
parent 67e49f190c
commit 877d56c43b
No known key found for this signature in database
GPG Key ID: 3F5B7DCCBF4AF02E
2 changed files with 3 additions and 10 deletions

View File

@ -1484,8 +1484,7 @@ pub fn addIncrementalTests(b: *std.Build, test_step: *Step) !void {
run.addFileArg(b.path("test/incremental/").path(b, entry.path)); run.addFileArg(b.path("test/incremental/").path(b, entry.path));
run.addArgs(&.{ "--zig-lib-dir", b.fmt("{}", .{b.graph.zig_lib_directory}) }); run.addArgs(&.{ "--zig-lib-dir", b.fmt("{}", .{b.graph.zig_lib_directory}) });
//run.addCheck(.{ .expect_term = .{ .Exited = 0 } }); run.addCheck(.{ .expect_term = .{ .Exited = 0 } });
run.stdio = .inherit;
test_step.dependOn(&run.step); test_step.dependOn(&run.step);
} }

View File

@ -95,7 +95,7 @@ pub fn main() !void {
}; };
defer target_prog_node.end(); defer target_prog_node.end();
if (debug_log_verbose or true) { if (debug_log_verbose) {
std.log.scoped(.status).info("target: '{s}-{s}'", .{ target.query, @tagName(target.backend) }); std.log.scoped(.status).info("target: '{s}-{s}'", .{ target.query, @tagName(target.backend) });
} }
@ -183,7 +183,7 @@ pub fn main() !void {
var update_node = target_prog_node.start(update.name, 0); var update_node = target_prog_node.start(update.name, 0);
defer update_node.end(); defer update_node.end();
if (debug_log_verbose or true) { if (debug_log_verbose) {
std.log.scoped(.status).info("update: '{s}'", .{update.name}); std.log.scoped(.status).info("update: '{s}'", .{update.name});
} }
@ -196,8 +196,6 @@ pub fn main() !void {
waitChild(&child, &eval); waitChild(&child, &eval);
} }
std.time.sleep(10 * std.time.ns_per_ms);
} }
const Eval = struct { const Eval = struct {
@ -403,7 +401,6 @@ const Eval = struct {
const run_prog_node = prog_node.start("run generated executable", 0); const run_prog_node = prog_node.start("run generated executable", 0);
defer run_prog_node.end(); defer run_prog_node.end();
std.log.scoped(.status).info("run executable", .{});
const result = std.process.Child.run(.{ const result = std.process.Child.run(.{
.allocator = eval.arena, .allocator = eval.arena,
@ -457,7 +454,6 @@ const Eval = struct {
} }
if (!is_foreign and result.stderr.len != 0) std.process.exit(1); if (!is_foreign and result.stderr.len != 0) std.process.exit(1);
std.log.scoped(.status).info("executable run completed", .{});
} }
fn requestUpdate(eval: *Eval) !void { fn requestUpdate(eval: *Eval) !void {
@ -496,8 +492,6 @@ const Eval = struct {
fn buildCOutput(eval: *Eval, update: Case.Update, c_path: []const u8, out_path: []const u8, prog_node: std.Progress.Node) !void { fn buildCOutput(eval: *Eval, update: Case.Update, c_path: []const u8, out_path: []const u8, prog_node: std.Progress.Node) !void {
std.debug.assert(eval.cc_child_args.items.len > 0); std.debug.assert(eval.cc_child_args.items.len > 0);
std.log.scoped(.status).info("building cbe output", .{});
const child_prog_node = prog_node.start("build cbe output", 0); const child_prog_node = prog_node.start("build cbe output", 0);
defer child_prog_node.end(); defer child_prog_node.end();