Skip to content

Commit d45d238

Browse files
authored
add a logging message to debug buffering (#86)
1 parent 7453c5d commit d45d238

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/stream.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,13 @@ function callprocess(stream::TranscodingStream, inbuf::Buffer, outbuf::Buffer)
635635
input = buffermem(inbuf)
636636
makemargin!(outbuf, minoutsize(stream.codec, input))
637637
Δin, Δout, state.code = process(stream.codec, input, marginmem(outbuf), state.error)
638+
@debug(
639+
"called process()",
640+
input_size = buffersize(inbuf),
641+
output_size = marginsize(outbuf),
642+
input_delta = Δin,
643+
output_delta = Δout,
644+
)
638645
consumed!(inbuf, Δin, transcode = true)
639646
supplied!(outbuf, Δout, transcode = true)
640647
if state.code == :error

0 commit comments

Comments
 (0)