1
Files
autoPriority/README.md
T

39 lines
889 B
Markdown

# 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.