Access performance counter programmatically in Microsoft Azure web app

后端 未结 2 1661
陌清茗
陌清茗 2021-01-25 17:27

Is it possible to access CPU, RAM and ASP.NET requests performance counter from web app via some API? When I call it using System.Diagnostics.PerformanceCounter.NextValue<

2条回答
  •  臣服心动
    2021-01-25 17:40

    It's related to permission issue here is the solution for that. Step 1: Just add an app.manifest file into particular solution step 2: add the following tag into manifest file.

    < requestedExecutionLevel level="highestAvailable" uiAccess="false" />

    Step 3: Finish.

提交回复
热议问题