fixed ram increase bug and increase some function#278
Open
lydd2024 wants to merge 18 commits into
Open
Conversation
lydd2024
commented
Apr 23, 2026
- Add AppleSiliconSensors.swift for reading temperature via IOHID API - Use PMU tdie sensors for CPU/GPU temperature on Apple Silicon Macs - Skip SMC calls on arm64 to avoid assertion failures - Disable SwiftFormat build script for compatibility
- Display individual core usage with progress bars - Show P-core (blue) and E-core (green) labels on Apple Silicon - Add per-core temperature from PMU tdie sensors - Calculate real-time usage from CPU tick deltas - Add localization for cpu.cores
- Add resolvedDeviceId for Apple Silicon GPUs without device-id - Use IOAccelerator PerformanceStatistics for GPU usage - Fallback to AppleSiliconSensors for GPU temperature - Display GPU core count in menu view - Match Apple Silicon GPUs by prefix instead of PCI ID
- NetworkTopStore: clear stale PID data periodically and on stop - TopStore: properly wait for process termination before cleanup - Shell: fix race condition in process termination handling
…upport - Convert to failable initializer pattern to avoid crashes on missing symbols - Use Unmanaged.takeRetainedValue() for CF Copy APIs to fix ownership - Add throttling (minReadInterval) and caching (cachedReadings) to reduce allocations - Add bounded eventBuffer (capacity 256) for future event-driven mode - Add dlsym bindings for IOHIDEventSystemClientScheduleWithRunLoop and IOHIDEventSystemClientRegisterEventCallback (disabled by default due to ABI risk) - Maintain existing API compatibility (shared?, getAllTemperatures(), cpuTemperature/gpuTemperature/socTemperature) - Replace unsafeBitCast with safe pointer handling to fix optimized build crash
- Add @State to cache computed Path, only recompute when points change - This fixes memory leak from SKKeyframeSequence and map arrays accumulating on every SwiftUI body recomputation
…on during view update
…ng view update - Wrap NotificationCenter posts, store updates, and view state mutations in DispatchQueue.main.async - Remove unnecessary @State firstAppear in ProgressBarView - Add defensive checks in StableWidth to avoid redundant updates
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.