Live video on the AT Protocol
at eli/detox-testing-github 30 lines 755 B view raw
1#!/bin/bash 2 3set -euo pipefail 4 5# Get the current executing directory 6DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" 7 8TMPDIR="$(mktemp -d)" 9cd $TMPDIR 10 11MALLOC_CONF=prof_leak:true,lg_prof_sample:0,prof_final:true LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 \ 12 "$DIR/build-linux-amd64/streamplace" --no-firehose --wide-open & 13STREAMPLACE_PID=$! 14 15sleep 3 16 17"$DIR/build-linux-amd64/streamplace" whip --count=3 --duration=90s \ 18 --file=$HOME/testvids/RocketLeague_1h55m_1sGOP_1080p60_NoBframes.mp4 || true 19 20sleep 5 21curl -X POST http://127.0.0.1:39090/gc 22sleep 3 23 24kill -SIGABRT "$STREAMPLACE_PID" 25 26wait 27 28outfile=$(realpath "$(ls)") 29echo "processing $outfile" 30jeprof --text "$DIR/build-linux-amd64/streamplace" "$outfile" | head -20