misc: improve rebuildCells time logging

This commit is contained in:
Qwerasd
2024-06-10 12:20:49 -04:00
parent c69dc0e0e1
commit db2cefb668

View File

@ -1877,9 +1877,11 @@ fn rebuildCells(
color_palette: *const terminal.color.Palette,
) !void {
// const start = try std.time.Instant.now();
// const start_micro = std.time.microTimestamp();
// defer {
// const end = std.time.Instant.now() catch unreachable;
// std.log.warn("rebuildCells time={}us", .{end.since(start) / std.time.ns_per_us});
// // "[rebuildCells time] <START us>\t<TIME_TAKEN us>"
// std.log.warn("[rebuildCells time] {}\t{}", .{start_micro, end.since(start) / std.time.ns_per_us});
// }
// Create an arena for all our temporary allocations while rebuilding