Commit gráf

6 Commit-ok

Szerző SHA1 Üzenet Dátum
hariel1985
201c7737a6 Add PID validation to prevent TOCTOU race condition in process control
Security improvements:
- Validate process still exists before sending signals
- Verify process start time matches to detect PID reuse
- Add ProcessControlError enum with descriptive error messages
- Show error alerts when operations fail (permission denied, process not found, PID reused)
- Pass expectedStartTime to all process control operations

This prevents accidentally terminating the wrong process when a PID
gets reused between user selection and confirmation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:49:40 +01:00
hariel1985
8fee51a4dd Update processes screenshot with CPU/Core and CPU/Total columns
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:40:04 +01:00
hariel1985
5e8343dea8 Add CPU/Total column showing normalized system-wide CPU usage
- Add cpuUsageTotal property to ProcessItem (100% = all cores)
- Keep cpuUsage as per-core percentage (100% = 1 core)
- Display both columns: CPU/Core and CPU/Total
- CPU/Total values now sum to match the total system CPU

This clarifies the difference between per-core and system-wide CPU
measurements that was causing confusion.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:37:38 +01:00
hariel1985
ca8cde3e2c Optimize CPU usage: background threading and smart refresh cycles
Major performance improvements to reduce CPU usage from 25-30% to ~0.5%:

- Move all data fetching to dedicated background queue
- Prime CPU and process monitors at startup with 1-second delay for accurate delta calculation
- Implement smart refresh cycles: processes fetched every other cycle after initial warmup
- Add lightweight refresh that skips expensive calls for idle processes (CPU < 0.1%)
- Increase refresh interval from 2s to 3s
- Add caching for processes with no icons to avoid repeated lookups
- Use sysctl fallback to get correct user ownership for system processes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:29:04 +01:00
hariel1985
5b3a7f92e5 Add screenshots to README
- Processes tab
- Apps tab
- Performance (CPU, Memory, Network)
- Power & Storage

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 00:00:32 +01:00
hariel1985
41010541a7 Initial commit: TopManager macOS system monitor
A native SwiftUI app for monitoring macOS system resources:
- Processes tab with sorting, filtering, and process control
- Apps tab for running applications
- Performance tab with CPU, memory, and network charts
- Power & Storage tab with system info, GPU, storage, and network

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 23:56:51 +01:00