Improve the performance of Environment.WorkingSet in Windows (#26522)
commit3f26b9aa6c5cfb7fc4a5740b300d6747a8e4ed93
authorSung Yoon Whang <suwhang@microsoft.com>
Thu, 12 Sep 2019 01:28:35 +0000 (11 18:28 -0700)
committerLarry Ewing <lewing@microsoft.com>
Thu, 12 Sep 2019 18:27:35 +0000 (12 13:27 -0500)
tree8b3da1e2c621164a2ed666f60f94060c1e484ac7
parent0055195d1c8fdf2fa2f165e4ce6faa792488d699
Improve the performance of Environment.WorkingSet in Windows (#26522)

* 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

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.GetProcessMemoryInfo.cs [new file with mode: 0644]
netcore/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
netcore/System.Private.CoreLib/shared/System/Environment.Unix.cs
netcore/System.Private.CoreLib/shared/System/Environment.Windows.cs
netcore/System.Private.CoreLib/shared/System/Environment.cs