Swiftpack.co - Shakshi3104/CoreWafer as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Shakshi3104.
Shakshi3104/CoreWafer 0.0.2
🧇 Package for Gaufre and Waffle
⭐️ 0
🕓 4 weeks ago
iOS macOS
.package(url: "https://github.com/Shakshi3104/CoreWafer.git", from: "0.0.2")

Core Wafer 🧇

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.

Usage

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.

Example

Gaufre is a macOS application powered by Core Wafer

Requirements

This package is compatible with iOS 14 or higher and macOS 11 or higher.

Installation

Core Wafer is available through Swift Package Manager.

Swift Package Dependencies

GitHub

link
Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics