Debian Codegraph @

bloomfilterparser.sh

raw symbols SCIP
1 #!/bin/bash
2
3 usage(){
4 echo "
5 Written by Brian Bushnell
6 Last modified October 5, 2022
7
8 Description: Parses verbose output from bloomfilter.sh for a specific paper.
9 Irrelevant for most people, but useful for reproducing published results.
10 You use it to parse output from bloomfilter.sh and tabulate it.
11
12 Usage: bloomfilterparser.sh in=<input file> out=<output file>
13
14 ...where the input file is whatever bloomfilter.sh prints to the screen. E.G.
15 in=slurm-3249652.out out=summary.txt
16
17 You get details of calls to increment() if you add the verbose flag.
18
19 Please contact Brian Bushnell at [email protected] if you encounter any problems.
20 "
21 }
22
23 #This block allows symlinked shellscripts to correctly set classpath.
24 pushd . > /dev/null
25 DIR="${BASH_SOURCE[0]}"
26 while [ -h "$DIR" ]; do
27 cd "$(dirname "$DIR")"
28 DIR="$(readlink "$(basename "$DIR")")"
29 done
30 cd "$(dirname "$DIR")"
31 DIR="$(pwd)/"
32 popd > /dev/null
33
34 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
35 CP="$DIR""current/"
36
37 z="-Xmx300m"
38 z="-Xms300m"
39 set=0
40
41 if [ -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
42 usage
43 exit
44 fi
45
46 calcXmx () {
47 source "$DIR""/calcmem.sh"
48 setEnvironment
49 parseXmx "$@"
50 }
51 calcXmx "$@"
52
53 parsebloom() {
54 local CMD="java $EA $EOOM $z -cp $CP bloom.ParseBloomFilter $@"
55 echo $CMD >&2
56 eval $CMD
57 }
58
59 parsebloom "$@"