'How to monitor CPU and RAM consuming by a .NET Core application

I am working on an ASP.NET Core Web API application in which I am working with the files security. I want to monitor the maximum and minimum RAM and CPU consumption for each task processing.

Is there any library to achieve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source