Improve Intel GPU stats (#14073)

* Fix formatting

* Fix test
This commit is contained in:
Nicolas Mowen
2024-09-30 15:41:14 -06:00
committed by GitHub
parent 18bf7f93fa
commit 4dc4704bb4
2 changed files with 55 additions and 23 deletions

View File

@@ -39,7 +39,8 @@ class TestGpuStats(unittest.TestCase):
process.stdout = self.intel_results
sp.return_value = process
intel_stats = get_intel_gpu_stats()
print(f"the intel stats are {intel_stats}")
assert intel_stats == {
"gpu": "1.34%",
"gpu": "1.13%",
"mem": "-%",
}