Skip to content

add last_seen_timestamp parameter to get more accurate process utilization counts. - #92

Merged
brayniac merged 1 commit into
rust-nvml:mainfrom
0x5457:improve-process-utilization-stats-count-accuracy
May 28, 2025
Merged

brayniac merged 1 commit into
rust-nvml:mainfrom
0x5457:improve-process-utilization-stats-count-accuracy

Conversation

@0x5457

@0x5457 0x5457 commented May 28, 2025

Copy link
Copy Markdown
Contributor

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
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