{"id":23388230,"url":"https://github.com/aaalgieee/switop","last_synced_at":"2025-04-08T13:21:57.931Z","repository":{"id":268201432,"uuid":"903466162","full_name":"aaalgieee/switop","owner":"aaalgieee","description":"🚀 Real-time System Monitor for Apple Silicon Macs","archived":false,"fork":false,"pushed_at":"2024-12-15T05:31:28.000Z","size":12,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T09:40:13.525Z","etag":null,"topics":["cli","macos","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaalgieee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-14T17:15:04.000Z","updated_at":"2025-01-14T18:04:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"94b0eacf-aff4-4e28-b497-78cc71d7aaca","html_url":"https://github.com/aaalgieee/switop","commit_stats":null,"previous_names":["aaalgieee/switop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaalgieee%2Fswitop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaalgieee%2Fswitop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaalgieee%2Fswitop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaalgieee%2Fswitop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaalgieee","download_url":"https://codeload.github.com/aaalgieee/switop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247847610,"owners_count":21006100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","macos","swift"],"created_at":"2024-12-22T02:18:20.812Z","updated_at":"2025-04-08T13:21:57.918Z","avatar_url":"https://github.com/aaalgieee.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SWITOP - System Performance Monitor\n\n📊 Monitor your Mac's performance with detailed insights into CPU, GPU, memory, and power metrics. Built with Swift, optimized for Apple Silicon.\n\nSWITOP 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.\n\n## Features\n\n- **CPU Monitoring**\n  - E-Core and P-Core usage percentages and frequencies\n  - Real-time performance metrics for both efficiency and performance cores\n\n- **GPU Monitoring**\n  - GPU usage percentage and frequency\n  - Real-time GPU performance metrics\n\n- **Memory Statistics**\n  - Physical memory usage\n  - Swap memory utilization\n  - Detailed memory breakdown\n\n- **Power Consumption Metrics**\n  - CPU power usage in watts\n  - GPU power consumption\n  - ANE (Apple Neural Engine) power usage\n  - Combined power consumption\n\n## Requirements\n\n- macOS running on Apple Silicon (M1 or later)\n- Root/Administrator privileges (for accessing system metrics)\n- Xcode 14.0+ (for building from source)\n\n## Installation\n\n### Building from Source\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/switop.git\ncd switop\n```\n\n2. Build the project:\n```bash\nswift build -c release\n```\n\n3. The binary will be available in `.build/release/switop`\n\n## Usage\n\nSimply run the application from the terminal:\n\n```bash\nsudo ./switop\n```\n\nNote: Root privileges are required to access system performance metrics.\n\n### Interface\n\nThe application displays:\n- System information including CPU model and core configuration\n- Real-time CPU metrics for both E-cores and P-cores\n- GPU usage and frequency\n- Memory usage statistics\n- Detailed power consumption metrics\n\nUse `Ctrl+C` to exit the application.\n\n## Technical Details\n\nSWITOP utilizes various system APIs and commands:\n- `powermetrics` for CPU and GPU metrics\n- `vm_stat` for memory statistics\n- `sysctl` for system information\n- System profiler for GPU information\n\n## Contributing\n\nContributions 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.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Support\n\nIf you encounter any issues or have questions, please file an issue on the GitHub repository.\n\n## Others\nI did this pure out of boredom...\nWas inspired of \"asitop\" and wanted to recreate it using Swift. Yes, thats it... 🤷🏻‍♂️\n\nIf anything breaks in your machine, aint my fault :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaalgieee%2Fswitop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaalgieee%2Fswitop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaalgieee%2Fswitop/lists"}