By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,251 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Performance counter

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.