开发者

How to create a performance counter and see it in PowerShell?

开发者 https://www.devze.com 2022-12-08 19:48 出处:网络
Hello I want to create a performance counter named as FileCopierApp, this should work with the get-counter cmdlet, How can I Achieve this? the properties would be:

Hello I want to create a performance counter named as FileCopierApp, this should work with the get-counter cmdlet, How can I Achieve this? the properties would be:

CounterSetName : FileCo开发者_如何转开发pierApp
MachineName : .
CounterSetType : SingleInstance
Description : Statistics for FileCopierApp.exe application
Paths : {\localhost\blablabla}
PathWithInstances : {}


I'm guessing that you want to add your own performance counters to your application and have them show up in powershell. Take a look at:

http://www.codeplex.com/PerfmonCounterHelper

It allows you to easily add performance counters to your application, which will automatically show up in powershell's get-counter cmdlet.

-Oisin

0

精彩评论

暂无评论...
验证码 换一张
取 消