Skip to content

Conversation

0x5457
Copy link
Contributor

@0x5457 0x5457 commented May 28, 2025

Description

This PR improves the process_utilization_stats_count function to accept a last_seen_timestamp parameter, providing more accurate process utilization counts.

Reference Implementation

This change is based on the approach used in the official Go NVML bindings:
https://github.com/NVIDIA/go-nvml/blob/2b8645591f09e57c414d4fc6a8bd9b24872472e7/pkg/nvml/device.go#L1816

@0x5457 0x5457 force-pushed the improve-process-utilization-stats-count-accuracy branch from 3d8e240 to 805b06a Compare May 28, 2025 10:03
@0x5457 0x5457 changed the title Add last_seen_timestamp parameter to get more accurate process utilization counts. add last_seen_timestamp parameter to get more accurate process utilization counts. May 28, 2025
@brayniac brayniac merged commit 2eab880 into rust-nvml:main May 28, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants