b999b7ec4f9f0b14188cca0ee86e5ce7637ce637
autoPriority
Automatically sets high CPU priority for memory-heavy processes.
Build
# Standard build (with console window)
go build -o autopriority.exe .
# Background build (no console, minimal size)
go build -ldflags="-H windowsgui -s -w" -o autopriority.exe .
Usage
autopriority [flags]
| Flag | Default | Description |
|---|---|---|
-mem |
536870912 | Memory threshold in bytes |
-interval |
1m0s | Scan interval (min 10s) |
-dry-run |
false | Log only, don't change priority |
-log |
true | Write autopriority.log to %TEMP% |
Auto-start
Place a shortcut to autopriority.exe in:
shell:startup
Dependencies
None. Uses only Windows API (kernel32, psapi) via raw syscall.
Description
Languages
Go
100%