Skip to content

feat: implement GPU usage monitoring for macOS#1035

Merged
shm11C3 merged 4 commits into
developfrom
feature/mac-gpu
Jan 18, 2026
Merged

feat: implement GPU usage monitoring for macOS#1035
shm11C3 merged 4 commits into
developfrom
feature/mac-gpu

Conversation

@shm11C3

@shm11C3 shm11C3 commented Jan 18, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 18, 2026 17:24
@github-actions github-actions Bot added rust Pull requests that update Rust code docs configuration feature labels Jan 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements GPU usage monitoring for macOS by integrating with the IOReport framework. It replaces the stub implementation with a functional system that samples GPU performance states in a background thread and caches the results for efficient access.

Changes:

  • Adds IOReport FFI bindings to interact with macOS GPU performance state APIs
  • Implements a background thread that continuously samples GPU usage at 1-second intervals
  • Provides thread-safe caching of GPU usage values using atomics

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
src-tauri/src/platform/macos/mod.rs Integrates new GPU module and replaces stub implementation
src-tauri/src/platform/macos/gpu.rs Platform layer that initializes sampler thread and retrieves cached GPU usage
src-tauri/src/infrastructure/providers/macos/mod.rs Exports new gpu and io_kit modules
src-tauri/src/infrastructure/providers/macos/io_kit/mod.rs Module declaration for io_report
src-tauri/src/infrastructure/providers/macos/io_kit/io_report.rs FFI bindings and implementation for IOReport sampling
src-tauri/src/infrastructure/providers/macos/gpu.rs Infrastructure layer managing background sampling thread and atomic storage
src-tauri/Cargo.toml Adds core-foundation dependency for macOS
src-tauri/Cargo.lock Updates dependency lockfile with core-foundation 0.10.1
docs/THIRD_PARTY_NOTICES/manual/macmon.mdx.md Adds MIT license attribution for macmon project reference

Comment thread src-tauri/src/infrastructure/providers/macos/gpu.rs Outdated
Comment thread src-tauri/src/infrastructure/providers/macos/gpu.rs Outdated
Comment thread src-tauri/src/infrastructure/providers/macos/io_kit/io_report.rs Outdated
Comment thread src-tauri/src/infrastructure/providers/macos/gpu.rs Outdated
Comment thread src-tauri/src/infrastructure/providers/macos/io_kit/io_report.rs Outdated
Comment thread src-tauri/src/infrastructure/providers/macos/io_kit/io_report.rs
Comment thread src-tauri/src/infrastructure/providers/macos/gpu.rs Outdated
Comment thread src-tauri/src/infrastructure/providers/macos/io_kit/io_report.rs
Comment thread src-tauri/src/infrastructure/providers/macos/io_kit/io_report.rs
@shm11C3 shm11C3 merged commit a005b64 into develop Jan 18, 2026
22 checks passed
@shm11C3 shm11C3 deleted the feature/mac-gpu branch January 18, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

configuration docs feature rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants