-
-
Notifications
You must be signed in to change notification settings - Fork 885
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
Disabled Windows performance collection leads to empty Process cache #542
Conversation
… to an empty cache The empty cache caused an empty process list.
Codecov Report
@@ Coverage Diff @@
## master #542 +/- ##
=========================================
Coverage 84.23% 84.23%
Complexity 194 194
=========================================
Files 28 28
Lines 1427 1427
Branches 208 208
=========================================
Hits 1202 1202
Misses 105 105
Partials 120 120 Continue to review full report at Codecov.
|
Thanks for this fix! A question -- if the performance data is disabled is there any other backup source for the same information (e.g., WMI) or does WMI draw from the same source eventually (I think it does)? |
Also is this a one-time fix of an empty cache, or does the disabled performance data cause the cache to be cleared every time? |
Actually, I did not check any WMI source. However, when I run the Unit testcases on my computer, it semes to fail to get the command line arguments via WMI.
As you can see, |
The fix does solve one problem, but it creates some inefficiencies. The cache is emptied at the end of It may be preferable to try to preserve some of the objects in the cache in your case, although admittedly it may not be worth the effort for this edge case. |
… to an empty cache
The empty cache caused an empty process list.