Skip to content

Commit 1ebac06

Browse files
committed
add debug line on cdp buffer growth
1 parent efc983b commit 1ebac06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ fn growBuffer(allocator: Allocator, buf: []u8, required_capacity: usize) ![]u8 {
785785
if (new_capacity >= required_capacity) break;
786786
}
787787

788+
log.debug(.app, "CDP buffer growth", .{ .from = buf.len, .to = new_capacity });
789+
788790
if (allocator.resize(buf, new_capacity)) {
789791
return buf.ptr[0..new_capacity];
790792
}

0 commit comments

Comments
 (0)