开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜