Improve the performance of Environment.WorkingSet in Windows (#26522) (#27212)
authorSung Yoon Whang <suwhang@microsoft.com>
Wed, 16 Oct 2019 05:08:30 +0000 (22:08 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2019 05:08:30 +0000 (22:08 -0700)
commitf2343fb8b9e13bb9a3542e988ad4ae04a621f378
tree2854dbddc720f1ff8c5e9d51c2feafacd451f7b1
parentc2bb3060555522bfb670ec2012578e8c77eae4da
Improve the performance of Environment.WorkingSet in Windows (#26522) (#27212)

* Use win32 api directly for workingset counter

* Fix build warnings

* Removing useless code

* more cleanup

* remove size annotation

* remove useless comment

* Move all the changes to Environment.WorkingSet and remove it from RuntimeEventSourceHelper

* removing useless usings

* Use kernel32.dll instead of psapi.dll

* Code review feedback

* Remove newline change

* More code review nits
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.GetProcessMemoryInfo.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
src/System.Private.CoreLib/shared/System/Environment.Unix.cs
src/System.Private.CoreLib/shared/System/Environment.Windows.cs
src/System.Private.CoreLib/shared/System/Environment.cs