mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
benchmark: improve script
Use a temp file for the log and fix one env-var.
This commit is contained in:
parent
84554af301
commit
83d7dbb393
1 changed files with 5 additions and 2 deletions
|
@ -20,12 +20,14 @@ fi
|
||||||
echo "testing $tracer on $file"
|
echo "testing $tracer on $file"
|
||||||
cat $file >/dev/null
|
cat $file >/dev/null
|
||||||
|
|
||||||
|
log=`mktemp`
|
||||||
|
|
||||||
function test() {
|
function test() {
|
||||||
GST_DEBUG_FILE=trace.log /usr/bin/gst-launch-1.0 playbin uri=file://$file audio-sink="fakesink sync=false" video-sink="fakesink sync=false" | grep "Execution ended after" | sed 's/Execution ended after//'
|
GST_DEBUG_FILE="$log" /usr/bin/gst-launch-1.0 playbin uri=file://$file audio-sink="fakesink sync=false" video-sink="fakesink sync=false" | grep "Execution ended after" | sed 's/Execution ended after//'
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "$tracer"
|
echo "$tracer"
|
||||||
GST_DEBUG="GST_TRACER:7" GST_TRACE="$tracer" test
|
GST_DEBUG="GST_TRACER:7" GST_TRACER_PLUGINS="$tracer" test
|
||||||
GST_DEBUG=
|
GST_DEBUG=
|
||||||
|
|
||||||
echo "no-log"
|
echo "no-log"
|
||||||
|
@ -35,3 +37,4 @@ GST_TRACER_PLUGINS=
|
||||||
echo "reference"
|
echo "reference"
|
||||||
test
|
test
|
||||||
|
|
||||||
|
rm "$log"
|
||||||
|
|
Loading…
Reference in a new issue