* Updates CPU performance metrics gathering for project modernization
* PerformanceCounters are not supported cross-platform in
.NET Core/5.0, which requires the use of an alternative method
in the gathering of performance metrics. Since no exposed .NET API
exists to gather these metrics without blocking, a new thread is
created to block the time necessary for the CPU performance to be
calculated.
* Address review: remove ResetEvent and make CpuPercent atomic
* Dispose of CpuPerformance instance before exiting Lean
* Minor tweak for Task and comment
Co-authored-by: Martin Molinero <martin.molinero1@gmail.com>
- Added logging of total memory usage, which includes both managed and unmanaged memory
- Fixed incorrect calculation of total physical memory for Windows
This reverts commit 221a90c81a.
Causing algorithms to fail. This wasn't intended to be merged until
after the pythonnet memory leak fix has been merged/deployed.