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.
1018 B
1018 B
Performance Guide
This document consolidates performance diagnostics and optimization guidance for ThreadPilot.
Profiling Instructions
- Collect process footprint baseline:
pwsh -NoProfile -ExecutionPolicy Bypass -File "build/collect-process-footprint.ps1" -ProcessName "ThreadPilot" -DurationMinutes 30 -SampleIntervalSeconds 5 -WaitForProcess
- Optional runtime counters:
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