From e6a2b7b36cc98e508efbc61c4646181f5817fc7c Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 20 Nov 2022 20:25:46 +0800 Subject: [PATCH] script update --- nuitka1-complie.ps1 | 3 +++ nuitka2-complie.ps1 | 4 +++- start.cmd | 2 -- start.ps1 | 12 ++++++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) delete mode 100644 start.cmd create mode 100644 start.ps1 diff --git a/nuitka1-complie.ps1 b/nuitka1-complie.ps1 index 96f0028..ddfe25c 100644 --- a/nuitka1-complie.ps1 +++ b/nuitka1-complie.ps1 @@ -1,8 +1,11 @@ $start_time = Get-Uptime +Write-Output $start_time python3.8.exe -m nuitka --jobs=24 --clang --mingw64 --lto=no --show-memory --show-progress --output-dir=build/nuitka1 --include-data-dir=./configs=./configs --include-data-dir=./libs/fonts=./libs/fonts --include-data-dir=./textures=./textures --include-data-dir=./libs/pyglet=./pyglet --enable-plugin=numpy --nofollow-import-to=objprint,numpy,pillow,cffi,PIL,pyglet --standalone $args .\DR.py $end_time = Get-Uptime $out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds Write-Output $end_time.TotalSeconds $start_time.TotalSeconds $out +Write-Output $start_time $end_time +Write-Output "--jobs=24 --clang --mingw64 --lto=no and $args" # --include-data-dir=./libs/pyglet=./pyglet # --run # --disable-ccache diff --git a/nuitka2-complie.ps1 b/nuitka2-complie.ps1 index 1fa0b89..fa4e208 100644 --- a/nuitka2-complie.ps1 +++ b/nuitka2-complie.ps1 @@ -1,9 +1,11 @@ $start_time = Get-Uptime +Write-Output $start_time python3.8.exe -m nuitka --jobs=24 --mingw64 --lto=no --show-memory --show-progress --output-dir=build/nuitka1 --include-data-dir=./configs=./configs --include-data-dir=./libs/fonts=./libs/fonts --include-data-dir=./textures=./textures --include-data-dir=./libs/pyglet=./pyglet --enable-plugin=numpy --nofollow-import-to=objprint,numpy,pillow,cffi,PIL,pyglet --standalone $args .\DR.py $end_time = Get-Uptime $out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds Write-Output $end_time.TotalSeconds $start_time.TotalSeconds $out - +Write-Output $start_time $end_time +Write-Output "--jobs=24 --mingw64 --lto=no and $args" # --include-data-dir=./libs/pyglet=./pyglet # --run # --disable-ccache diff --git a/start.cmd b/start.cmd deleted file mode 100644 index 9d8c424..0000000 --- a/start.cmd +++ /dev/null @@ -1,2 +0,0 @@ -python -O DR.py -pause \ No newline at end of file diff --git a/start.ps1 b/start.ps1 new file mode 100644 index 0000000..c1a87eb --- /dev/null +++ b/start.ps1 @@ -0,0 +1,12 @@ +function run { + python3.8.exe -O DR.py +} +function viz_run { + viztracer.exe --output_file ./logs/viz_result.json --open --tracer_entries 10000000 DR.py +} +if ($args -eq "run") { + run +} elseif ($args -eq "viz") { + viz_run +} +pause \ No newline at end of file