468,539 Members | 1,521 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,539 developers. It's quick & easy.

Performance counter

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/de...l=/library/en-
us/cpref/html/frlrfsystemdiagnosticsperformancecounterclasscateg orynametopi
c.asp

Thanks for any help...

-C

Nov 20 '05 #1
1 2395
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 <so*********@yahoo.com>
Organization: Your Company
Message-ID: <Xn*********************************@140.99.99.130 >
User-Agent: Xnews/5.04.25
Lines: 17
X-Complaints-To: ab***@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.Date: Mon, 17 May 2004 21:41:49 GMT
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!npeer.de.kpn-eurorings.net!newsfeed.news2me.com!n
ewsfeed3.easynews.com!easynews.com!easynews!easyne ws-local!news.easynews.com
..POSTED!not-for-mailXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:203439
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I've added the performance counter object to my app... Within the class
there's the PerformanceCounter.CategoryName property that allows you to setwhat 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/de...l=/library/en-
us/cpref/html/frlrfsystemdiagnosticsperformancecounterclasscateg orynametopi
c.asp

Thanks for any help...

-C


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Marc Melancon | last post: by
reply views Thread by jimiz | last post: by
reply views Thread by Salvador | last post: by
reply views Thread by George2 | last post: by
6 posts views Thread by sony.m.2007 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.