c9253f879d
Add comprehensive CI and release improvements (coverage collection, Codecov upload, SBOM generation), split release workflow into build/smoke-test/release stages with deterministic version resolution, artifact uploads, winget manifest updates and changelog generation. Add a pre-commit hook to block large or unwanted artifacts. Introduce runtime improvements: smoke-test startup mode, improved unhandled/dispatcher/task-exception reporting, ThreadPilotException error codes, single-instance behavior adjustments, and logging enhancements. UI and UX changes include a new Logs tab and LogViewer wiring, DWM title-bar theming helper, navigation serialization/unsaved-changes guard, system-tray update backoff logic, and related viewmodel/service integrations. Also add installer template, helper classes, tests, docs, packaging and build scripts, and minor .gitignore updates.
35 lines
1018 B
Markdown
35 lines
1018 B
Markdown
# Performance Guide
|
|
|
|
This document consolidates performance diagnostics and optimization guidance for ThreadPilot.
|
|
|
|
## Profiling Instructions
|
|
|
|
1. Collect process footprint baseline:
|
|
|
|
```powershell
|
|
pwsh -NoProfile -ExecutionPolicy Bypass -File "build/collect-process-footprint.ps1" -ProcessName "ThreadPilot" -DurationMinutes 30 -SampleIntervalSeconds 5 -WaitForProcess
|
|
```
|
|
|
|
2. Optional runtime counters:
|
|
|
|
```powershell
|
|
dotnet-counters monitor --process-id <PID> --refresh-interval 5 --counters System.Runtime
|
|
```
|
|
|
|
## Benchmarks and Targets
|
|
|
|
- Idle tray CPU: target < 1% single-core equivalent
|
|
- Idle memory footprint: target < 100MB working set
|
|
- No sustained Gen2 pause > 100ms without investigation
|
|
|
|
## Optimization Notes
|
|
|
|
- Prefer event-driven process detection via WMI watchers.
|
|
- Use fallback polling with adaptive intervals and overlap protection.
|
|
- Keep UI-thread work minimal in periodic timers.
|
|
|
|
## Related Documents
|
|
|
|
- docs/audits/PHASE1_1_MEMORY_CPU_BASELINE.md
|
|
- docs/reference/runtimeconfig.template.json
|