Create analyse_results.sh

This commit is contained in:
augustin64 2024-06-05 13:40:40 +02:00
parent ead00b5e8a
commit 79b6a837f8
2 changed files with 21 additions and 2 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh
NAME=`basename "$1" .txt.bz2`
echo $NAME
# NAME=`basename "$1" .txt.bz2`
# echo $NAME
NAME=$1
#bzcat $1 | awk '/^Iteration [:digit:]*[.]*/ ' > "${NAME}-iterations.txt"
#rm "${NAME}-results.csv.bz2"

18
cache_utils/analyse_results.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# Assumes the input file has no extension and isn't bzip compressed
# Automatically runs the different analysis scripts
exit_echo () {
echo $@;
exit 1;
}
[[ $1 ]] || exit_echo "Usage: $0 <file>";
[[ -f $1.slices.csv ]] || exit_echo "$1.slices.csv not found"
[[ -f $1.cores.csv ]] || exit_echo "$1.cores.csv not found"
bash 2T/analyse.sh $1
. venv/bin/activate
python analyse_csv.py $1
python analyse_medians.py $1