Ralph Sennhauser
6f5ac7c4ae
Some are real bugs, some are bashisms, but most is zealous quoting of variables. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
24 lines
938 B
Bash
Executable File
24 lines
938 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Source this script with `. tl-options.sh` in order to set up environment variables for the
|
|
# SpiderMonkey tracelogger.
|
|
# Once the variables are set, run ./pyrogenesis in binaries/system with the options you need and
|
|
# the tracelogging data will be saved to source/tools/tracelogger/
|
|
|
|
# After the run, use this tool: https://github.com/h4writer/tracelogger to display the data.
|
|
# The last tested version of the tool is 1c67e97e794b5039d0cae95f72ea0c76e4aa4696,
|
|
# it can be used if more recent versions cause trouble.
|
|
|
|
TLDIR="$(dirname "$(realpath "$0")")"
|
|
export TLDIR
|
|
|
|
# Use semicolons to separate values on Windows.
|
|
# If that produces bogus output, you can try with commas instead.
|
|
if [ "${OS}" = "Windows_NT" ]; then
|
|
export TLLOG="Default;IonCompiler"
|
|
export TLOPTIONS="EnableMainThread;EnableOffThread;EnableGraph"
|
|
else
|
|
export TLLOG=Default,IonCompiler
|
|
export TLOPTIONS=EnableMainThread,EnableOffThread,EnableGraph
|
|
fi
|