Performance counter

  • Thread starter Thread starter socal
  • Start date Start date
S

socal

I've added the performance counter object to my app... Within the class
there's the PerformanceCounter.CategoryName property that allows you to set
what category you want to monitor. For instance, CategoryName =
"Processor". At design time, you get a drop down list of available
categories. Does anyone know how to get the list of available categories
at runtime?

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/cpref/html/frlrfsystemdiagnosticsperformancecounterclasscategorynametopi
c.asp

Thanks for any help...

-C
 
Hi C,

Try PerformanceCategory.GetCategories (in System.Diagnostics). Each
category has a CategoryName property.

Craig VB .Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
Newsgroups: microsoft.public.dotnet.languages.vb
Subject: Performance counter
From: socal <[email protected]>
Organization: Your Company
Message-ID: <[email protected]>
User-Agent: Xnews/5.04.25
Lines: 17
X-Complaints-To: (e-mail address removed)
X-Complaints-Info: Please be sure to forward a copy of ALL headers
otherwise we will be unable to process your complaint properly.
 
Back
Top