Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
CAD-1968 scripts: update against changed node log format
  • Loading branch information
deepfire committed Nov 27, 2020
1 parent d132b4e commit d2438f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benchmarks/shelley3pools/analyse.sh
Expand Up @@ -31,7 +31,7 @@ else
fi

# stem of logfile names:
LOGFILESTEM=${LOGFILESTEM:-"node"}
LOGFILESTEM=${LOGFILESTEM:-"node-"}
for N in $(seq 0 $((NNODES - 1))); do
echo "analysing logs of node ${N}"
../../scripts/nodeisleader.sh ${LOGPATH}/${LOGFILESTEM}$((N+1))-*.json | sed -e 's/^\(.*\)$/'${N}',\1/' - > ${OUTDIR}/leader-${N}.csv
Expand Down
7 changes: 3 additions & 4 deletions scripts/analyse.sh
Expand Up @@ -56,8 +56,7 @@ extract_recvs() {
select (.data.kind == "Recv" and .data.msg.kind == "MsgBlock")
| .at as $at # bind timestamp
| .data.msg.txIds # narrow to the txid list
| map ( .[23:87] # cut the extra stuff
| "\(.);\($at)") # produce the resulting string
| map ( "\(.);\($at)") # produce the resulting string
| .[] # merge string lists over all messages
' $1 |
tr -d '"'
Expand Down Expand Up @@ -139,7 +138,7 @@ then join -1 1 -2 1 -v 1 -t ";" \
then rm -f rtx_*-missing.*
else cat <<EOF
-- Lost Txs: ${count_missing}: or $(((count_missing * 100 / count_sent)))% of sent
-- Missing sends: ${extra_prefix}analysis/rtx_stime-missing.1 ${extra_prefix}analysis/rtx_stime-missing.2
-- Missing sends: ${extra_prefix}/analysis/rtx_stime-missing.1 ${extra_prefix}analysis/rtx_stime-missing.2
EOF
fi

Expand All @@ -150,7 +149,7 @@ EOF
then rm -f rtx_*-martian.*
else cat <<EOF
-- Martian Txs: ${count_martian}: or $(((count_martian * 100 / count_recvd)))% of received
-- Martian receipts: ${extra_prefix}analysis/rtx_rtime-martian.1
-- Martian receipts: ${extra_prefix}/analysis/rtx_rtime-martian.1
EOF
fi
fi
Expand Down

0 comments on commit d2438f4

Please sign in to comment.