Speedbit

Hello,

I want to log the memory usage of my application. To do this I want to create a performance counter. But somehow it's not working.

When i define: private System.Diagnostics.per* I see no PerformanceCounter.

As stated here: http://msdn2.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx

Version Information

It should be working in .NET 2.0. I'm using visual studio 2005 and windows CE 5.0.

Any suggestions

Thanks.



Re: .NET Compact Framework PerformanceCounter

Ilya Tumanov

Should be:

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

<NOTHING>

Which means it¡¯s not supported on any version of NETCF. Since AFAIK CE does not have performance counters, it¡¯s only natural.

Note there was a known bug in documentation generator which would mark classes as supported on NETCF while they don¡¯t even exist in some cases. However, methods are marked correctly. If you run into situation where class marked as supported but does not compile it means you hit that bug. You can check methods to be sure ¨C if none are marked as supported on device, entire class is not available.






Re: .NET Compact Framework PerformanceCounter

mikejo

This was a doc tools bug that has been fixed, but not yet updated on MSDN.

When ".NET Compact Framework" appears at the end of the same line as ".NET Framework" under Version Information, it is extraneous text, and the type/member is not supported.