You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
janbuchar
added
debt
Code quality improvement or decrease of technical debt.
t-tooling
Issues with this label are in the ownership of the tooling team.
labels
Dec 9, 2024
It appears the current implementation is broken anyway. If you call getMemoryInfo on windows, the returned object returns a default value for the mainProcessBytes
@janbuchar ive been playing around with this and I have a solution that works but ive hit a bit of a snag. The modern alternative to WMIC that Microsoft reccomends is the powershell command Get-CimInstance. This can be executed as follows:
unfortunately this takes about 66% longer to execute than WMIC did. ~500+ms vs ~300+ms. Is this a trade off you can accept or should I keep looking?
Theres a module i found called ps-list by sindresorhus that has a custom binary that would likley be faster but obviously it would add a third party dependancy.
If the powershell solution is acceptable, a slight test modification is needed in the test suite as the Snapshotter ".get[.*]Sample limits amount of samples" test doesnt run long enough for the function to run twice and thus throws a false positive.
LocalEventManager
to get memory usage (or cpu? doesn't matter...)The text was updated successfully, but these errors were encountered: