Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: add GPU meter and process column #1288

Merged
merged 6 commits into from
Mar 27, 2024
Merged

Commits on Jan 9, 2024

  1. Store time of the previous process scan

    The difference of scans is useful for utilization calculations.
    
    To avoid divisions by 0 on first scan set monotonicMs also on first
    scan.
    cgzones committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    f82a6a2 View commit details
    Browse the repository at this point in the history
  2. Introduce autoTitleRightAlign column flag

    Instead of handling PERCENT_CPU as a special case for whether to align
    the title of a dynamically sized column to the right or the left
    introduce a new flag, which can be reused by other columns.
    cgzones committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    02e3d0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    203979f View commit details
    Browse the repository at this point in the history
  4. Short circuit zero time in Row_printTime()

    Bail out early if the passed time is 0 and shadow the result.
    cgzones committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    56a76e3 View commit details
    Browse the repository at this point in the history
  5. Linux: add GPU meter and process column

    Based on the DRM client usage stats[1] add statistics for GPU time spend
    and percentage utilization.
    
    [1]: https://www.kernel.org/doc/html/latest/gpu/drm-usage-stats.html
    cgzones committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    ed56d7d View commit details
    Browse the repository at this point in the history
  6. Linux: scan GPU based on previous activity

    Instead of ignoring the standard file descriptors 0, 1 and 2 scan for
    GPU usage of a process only if that process had activity last cycle or
    its last scan was more than five seconds ago.
    cgzones committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    ef93964 View commit details
    Browse the repository at this point in the history