π Monitor your Mac's performance with detailed insights into CPU, GPU, memory, and power metrics. Built with Swift, optimized for Apple Silicon.
SWITOP is a powerful command-line interface (CLI) application designed to provide real-time system performance monitoring for Apple Silicon Macs. It offers detailed insights into CPU, GPU, memory usage, and power consumption metrics.
-
CPU Monitoring
- E-Core and P-Core usage percentages and frequencies
- Real-time performance metrics for both efficiency and performance cores
-
GPU Monitoring
- GPU usage percentage and frequency
- Real-time GPU performance metrics
-
Memory Statistics
- Physical memory usage
- Swap memory utilization
- Detailed memory breakdown
-
Power Consumption Metrics
- CPU power usage in watts
- GPU power consumption
- ANE (Apple Neural Engine) power usage
- Combined power consumption
- macOS running on Apple Silicon (M1 or later)
- Root/Administrator privileges (for accessing system metrics)
- Xcode 14.0+ (for building from source)
- Clone the repository:
git clone https://github.com/yourusername/switop.git
cd switop
- Build the project:
swift build -c release
- The binary will be available in
.build/release/switop
Simply run the application from the terminal:
sudo ./switop
Note: Root privileges are required to access system performance metrics.
The application displays:
- System information including CPU model and core configuration
- Real-time CPU metrics for both E-cores and P-cores
- GPU usage and frequency
- Memory usage statistics
- Detailed power consumption metrics
Use Ctrl+C
to exit the application.
SWITOP utilizes various system APIs and commands:
powermetrics
for CPU and GPU metricsvm_stat
for memory statisticssysctl
for system information- System profiler for GPU information
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please file an issue on the GitHub repository.
I did this pure out of boredom... Was inspired of "asitop" and wanted to recreate it using Swift. Yes, thats it... π€·π»ββοΈ
If anything breaks in your machine, aint my fault :)