script update

This commit is contained in:
shenjack 2022-11-20 20:25:46 +08:00
parent 052dada1f5
commit e6a2b7b36c
4 changed files with 18 additions and 3 deletions

View File

@ -1,8 +1,11 @@
$start_time = Get-Uptime $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 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 $end_time = Get-Uptime
$out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds $out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds
Write-Output $end_time.TotalSeconds $start_time.TotalSeconds $out 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 # --include-data-dir=./libs/pyglet=./pyglet
# --run # --run
# --disable-ccache # --disable-ccache

View File

@ -1,9 +1,11 @@
$start_time = Get-Uptime $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 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 $end_time = Get-Uptime
$out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds $out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds
Write-Output $end_time.TotalSeconds $start_time.TotalSeconds $out 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 # --include-data-dir=./libs/pyglet=./pyglet
# --run # --run
# --disable-ccache # --disable-ccache

View File

@ -1,2 +0,0 @@
python -O DR.py
pause

12
start.ps1 Normal file
View File

@ -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