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

Get Windows percent swap usage from performance counters #2160

Merged
merged 19 commits into from
Apr 13, 2023

Commits on Apr 12, 2023

  1. Handle mismatch between committed vs. used physical memory

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    36dc571 View commit details
    Browse the repository at this point in the history
  2. Add tests

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    975ef95 View commit details
    Browse the repository at this point in the history
  3. add windows test for free physical mem giampaolo#2074

    Signed-off-by: Daniel Widdis <[email protected]>
    giampaolo authored and dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    b86a5dc View commit details
    Browse the repository at this point in the history
  4. Remove unneeded conditional

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    efe7fb4 View commit details
    Browse the repository at this point in the history
  5. Use AssertAlmostEqual for percentage range

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    d9abb86 View commit details
    Browse the repository at this point in the history
  6. Fetch percent swap from PDH

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    5ccbead View commit details
    Browse the repository at this point in the history
  7. Fix function naming and counter string

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    5bc70ca View commit details
    Browse the repository at this point in the history
  8. Change PR title and update HISTORY

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    9b355d0 View commit details
    Browse the repository at this point in the history
  9. Filter WMI Paging File test query to _Total

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    660e408 View commit details
    Browse the repository at this point in the history
  10. Convert percentages to fractions

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    6dc64c4 View commit details
    Browse the repository at this point in the history
  11. Handle disabled swap/counter failure case

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    5d3575b View commit details
    Browse the repository at this point in the history
  12. Put unit test back to percent

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    0b0ad49 View commit details
    Browse the repository at this point in the history
  13. Rename psutil_get_swappercent to psutil_swap_percent

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    aa910e2 View commit details
    Browse the repository at this point in the history
  14. Move psutil_percent_swap to mem.c

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    e3ce8a3 View commit details
    Browse the repository at this point in the history
  15. Remove duplicate import from rebase

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    9d12ff5 View commit details
    Browse the repository at this point in the history
  16. Revert all changes to wmi.c

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    06ebf96 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. Rename getpercentswap to swap_percent

    Signed-off-by: Daniel Widdis <[email protected]>
    dbwiddis committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    58f462b View commit details
    Browse the repository at this point in the history
  2. Update mem.c

    giampaolo authored Apr 13, 2023
    Configuration menu
    Copy the full SHA
    82abe0c View commit details
    Browse the repository at this point in the history
  3. Update mem.c

    fail if PdhGetFormattedCounterValue fails
    giampaolo authored Apr 13, 2023
    Configuration menu
    Copy the full SHA
    49ef971 View commit details
    Browse the repository at this point in the history