Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old May 29th, 2006, 10:44 PM   #1
coder0xff
Unverified User
 
coder0xff's Avatar
 
Join Date: Mar 2006
Posts: 18
Rep Power: 0 coder0xff is on a distinguished road
Slow Performance Counter

I am writting a program using .Net. I am using the PerformanceCounter class and as previous experience with this class has also shown, the retrieval of values is prohibitively slow. (Atleast in the context which I am using it in) In this particular scenario I am getting the "Process">"IO Data Bytes/sec" for each process and using the RawValue, not the computed NextValue(). Is there another way I can retrieve this information (is it beneficial to use advapi.dll and bypass .net?). Less importantly (or perhaps more) why are the performance classes so slow anyway? I looked around on the net and found issues about slow constructors and over network parallel use problems, but not much on the slow performance of retrieving values otherwise. It looks like the underlying RegQueryValueEx function is rather time consuming. Funny that the word Performance is in the name of the class, isn't it?
coder0xff is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC