[Mono-devel-list] System.Diagnostics.PerformanceCounter (Publish and be dammed!!)

anthony whalley tont at o2.ie
Wed Mar 30 05:41:13 EST 2005


Hi Folks

Attached is the my first attempt at the System.Diagnostics.PerformanceCounter. 

It implements 2 counters in the catagory Memory
  
  Available KBytes 
  Committed Bytes.

I have more done on Disk and CPU but i did n't 
want to confuse the issue until the 
list confirmed that it is a worth while approach.

If the approach is valid then could you clarify 
the following as  I am worried that in the
 LinuxPerformanceCounter the GetMemoryCounter is going to have
too many nested if statements and hamper readability. 
(see comment out beneath GetMemoryCounter for the list). 

Can anyone suggest a better way.

The code is self contained at the moment 
and running nant in the dir should build AND
RUN the test exe. 

Tont




-------------- next part --------------
A non-text attachment was scrubbed...
Name: System.Diagnostics.tar.gz
Type: application/x-gzip
Size: 16585 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050330/d330d2fe/attachment.gz 


More information about the Mono-devel-list mailing list