diff --git a/scripts/code-perf.bat b/scripts/code-perf.bat deleted file mode 100644 index 2f6e68fc533..00000000000 --- a/scripts/code-perf.bat +++ /dev/null @@ -1,28 +0,0 @@ -@echo off -setlocal - -title VSCode Dev - -pushd %~dp0\.. - -:: Node modules -if not exist node_modules call .\scripts\npm.bat install - -:: Get electron -node .\node_modules\gulp\bin\gulp.js electron - -:: Build -if not exist out node .\node_modules\gulp\bin\gulp.js compile - -:: Configuration -set NODE_ENV=development -set VSCODE_DEV=1 -set ELECTRON_DEFAULT_ERROR_MODE=1 -set ELECTRON_ENABLE_LOGGING=1 -set ELECTRON_ENABLE_STACK_DUMPING=1 - -:: Launch Code -.\.build\electron\electron.exe . %* --no-sandbox --js-flags="--trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces" -popd - -endlocal \ No newline at end of file diff --git a/scripts/code-perf.sh b/scripts/code-perf.sh deleted file mode 100755 index 92f83b3a46c..00000000000 --- a/scripts/code-perf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -if [[ "$OSTYPE" == "darwin"* ]]; then - realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; } - ROOT=$(dirname $(dirname $(realpath "$0"))) -else - ROOT=$(dirname $(dirname $(readlink -f $0))) -fi - -function code() { - cd $ROOT - - # Node modules - test -d node_modules || ./scripts/npm.sh install - - # Get electron - ./node_modules/.bin/gulp electron - - # Build - test -d out || ./node_modules/.bin/gulp compile - - # Configuration - export NODE_ENV=development - export VSCODE_DEV=1 - export ELECTRON_ENABLE_LOGGING=1 - export ELECTRON_ENABLE_STACK_DUMPING=1 - - # Launch Code - if [[ "$OSTYPE" == "darwin"* ]]; then - exec ./.build/electron/Electron.app/Contents/MacOS/Electron . "$@" - else - exec ./.build/electron/electron . "$@" --no-sandbox --js-flags="--trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces" - # exec ./.build/electron/electron . "$@" --no-sandbox --js-flags="--trace-opt-verbose --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces" - fi -} - -code "$@"