fix(quic-interop): inspect script greps [batch] and [interop] lines too
Previous version only grepped '\[writer' so the [batch] entry/exit logs and [interop] chunk-size logs were silently filtered out. Now shows them BEFORE the [writer.app] dump so they appear at the top.
This commit is contained in:
@@ -38,9 +38,11 @@ echo "=============== writer-side debug traces (DEBUG=1 build only) ============
|
||||
# `grep -c` exits 1 on no matches AND prints "0", so a naive
|
||||
# `grep -c ... || echo 0` doubles up. Suppress the exit code
|
||||
# instead.
|
||||
WRITER_LINES=$(grep -c '\[writer' "$CASE_DIR/output.txt" 2>/dev/null) || WRITER_LINES=0
|
||||
WRITER_LINES=$(grep -cE '\[(writer|batch|interop)' "$CASE_DIR/output.txt" 2>/dev/null) || WRITER_LINES=0
|
||||
if [[ "$WRITER_LINES" -gt 0 ]]; then
|
||||
echo "($WRITER_LINES writer trace lines; first 30:)"
|
||||
echo "($WRITER_LINES diagnostic lines; [batch] / [interop] entries first then first 30 [writer.app]:)"
|
||||
grep -E '\[(batch|interop)' "$CASE_DIR/output.txt" | head -n 20
|
||||
echo "..."
|
||||
grep '\[writer' "$CASE_DIR/output.txt" | head -n 30
|
||||
echo
|
||||
echo "stream_frames histogram (writer-reported):"
|
||||
@@ -49,9 +51,9 @@ if [[ "$WRITER_LINES" -gt 0 ]]; then
|
||||
echo "active histogram (active stream count at drain time):"
|
||||
grep -oE 'active=[0-9]+' "$CASE_DIR/output.txt" | sort | uniq -c | sort -rn
|
||||
else
|
||||
echo "(no [writer.* lines yet — to enable, REBUILD the image with DEBUG=1:"
|
||||
echo " cd quic/interop && make build DEBUG=1"
|
||||
echo " then re-run the matrix and re-run this script)"
|
||||
echo "(no diagnostic lines yet — to enable, REBUILD the image with DEBUG=1:"
|
||||
echo " DEBUG=1 ./quic/interop/run-matrix.sh -s aioquic -t multiplexing"
|
||||
echo " then re-run this script)"
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user