-
Updates CPU performance metrics gathering approach (#5261)
发布于
2021-02-05 23:23:30 +00:00 | 2551 次提交 在此版本后已推送到 master-
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.
- PerformanceCounters are not supported cross-platform in
-
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
下载附件
-