Core Wafer is a package for capturing the CPU usage for each core of the Mac or iPhone, like a CPU Usage window of Activity Monitor.app
On the iPhone and Apple Silicon Mac, Efficiency core (E-core) and Performance core (P-core) are displayed in different colors.
import SwiftUI
import CoreWafer
struct ContentView: View {
@ObserverdObject var processor = ProcessorObserver()
var body: some View {
WafersView(processor: processor)
.onAppear {
processor.start()
}
}
}
By using ProcessorObserver
and CoreTypeInformation
, you can also build your own View. Refer to WafersView
.
Gaufre is a macOS application powered by Core Wafer
This package is compatible with iOS 14 or higher and macOS 11 or higher.
Core Wafer is available through Swift Package Manager.
link |
Stars: 0 |
Last commit: 20 hours ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics