Skip to content

Commit

Permalink
Using the bash script to handle exact naming in olly latency
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectreAAS committed Sep 2, 2022
1 parent b2e44c3 commit c74259a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions pausetimes/pausetimes_multicore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/bash

export OCAML_EVENTLOG_ENABLED="1"
TMP=$(mktemp)
OUTFILE=$1
BENCH_NAME=$(basename $OUTFILE .pausetimes_multicore.bench)
shift
eval $@
if ls *.eventlog 1> /dev/null 2>&1; then
ocaml-eventlog-pausetimes *.eventlog $BENCH_NAME > $OUTFILE
rm *.eventlog
fi
eval "olly latency -o $TMP --json '$@'"
cat $TMP | jq "{name: \"$BENCH_NAME\"} + ." >$OUTFILE
rm $TMP
2 changes: 1 addition & 1 deletion run_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
{
"name": "pausetimes_multicore",
"command": "olly latency -o %{output} --json 'taskset --cpu-list 5 %{command}'"
"command": "bash pausetimes_multicore %{output} taskset --cpu-list 5 %{command}"
}
],
"benchmarks": [
Expand Down

0 comments on commit c74259a

Please sign in to comment.