Changeset View
Changeset View
Standalone View
Standalone View
source/tools/tracelogger/tracelogger_options.sh
#!/bin/sh | #!/bin/sh | ||||
# Source this script with `. tl-options.sh` in order to set up environment variables for the | # Source this script with `. tl-options.sh` in order to set up environment variables for the | ||||
# SpiderMonkey tracelogger. | # SpiderMonkey tracelogger. | ||||
# Once the variables are set, run ./pyrogenesis in binaries/system with the options you need and | # 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/ | # 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. | # After the run, use this tool: https://github.com/h4writer/tracelogger to display the data. | ||||
# The last tested version of the tool is 1c67e97e794b5039d0cae95f72ea0c76e4aa4696, | # The last tested version of the tool is 1c67e97e794b5039d0cae95f72ea0c76e4aa4696, | ||||
# it can be used if more recent versions cause trouble. | # it can be used if more recent versions cause trouble. | ||||
# Use semicolons to separate values on Windows. | # Use semicolons to separate values on Windows. | ||||
# If that produces bogus output, you can try with commas instead. | # If that produces bogus output, you can try with commas instead. | ||||
if [ "${OS}" = "Windows_NT" ] | if [ "${OS}" = "Windows_NT" ] | ||||
then | then | ||||
export TLLOG="Defaults;IonCompiler" | SET TLLOG="Defaults;IonCompiler" | ||||
export TLOPTIONS="EnableMainThread;EnableOffThread;EnableGraph" | SET TLOPTIONS="EnableMainThread;EnableOffThread;EnableGraph" | ||||
else | else | ||||
export TLLOG=Defaults,IonCompiler | export TLLOG=Defaults,IonCompiler | ||||
export TLOPTIONS=EnableMainThread,EnableOffThread,EnableGraph | export TLOPTIONS=EnableMainThread,EnableOffThread,EnableGraph | ||||
fi | fi |
Wildfire Games · Phabricator