all groups > dotnet clr > july 2004 >
You're in the

dotnet clr

group:

What is class[] in CLR Profiler?


What is class[] in CLR Profiler? Lei Jiang
7/30/2004 1:28:52 PM
dotnet clr:
I download the CLR profiler and run it. It's great and the documentation is
very good. But I don't know what is class[] in graphs. It appears frequently
but the document doesn't mention it. Is it the metadata?

Thanks!


What is class[] in CLR Profiler? Peter Sollich [MSFT]
8/2/2004 8:17:36 AM
Hi Lei,

class[] means an array of some type of class. The
CLRProfiler only outputs this if it's unable to obtain
more precise type information.

There is a bug in the public download version of
CLRProfiler that causes this to happen with certain
versions of the .NET framework, I think starting with
Whidbey.

There is a pretty simple way to fix this in the source
code that's publicly available. Go to the "ProfilerObj"
subdirectory in the source code, load
the "ProfilerCallback.cpp" source file. Go to line 3998.
You should be inside method
ProfilerCallback::_InsertGCClass and positioned close to
this source code:

//
// before you break set the realClassID to the
value that it was before the
// last unsuccessful call
//
if ( realClassID != NULL ) // <- line 3998
realClassID = prevClassID;

Now just comment out or delete line 3998, preserving the
body of the if:

//
// before you break set the realClassID to the
value that it was before the
// last unsuccessful call
//
// if ( realClassID != NULL ) // <- line 3998
realClassID = prevClassID;

Rebuild. This should fix the problem. Note that the issue
concerns the log file generation, so old log files will
still show "class[]".

This posting is provided "AS IS" with no warranties, and
confers no rights.

Please do not send e-mail directly to this alias. This
alias is for newsgroup purposes only.

Thanks
Peter
[quoted text, click to view]
Re: What is class[] in CLR Profiler? Lei Jiang
8/3/2004 12:29:19 PM
Thank you Peter. Could I build the code in VS.NET 2005 Beta?

"Peter Sollich [MSFT]" <petersol@online.microsoft.com> ????
news:95f701c478a3$d7cc9d90$a301280a@phx.gbl...
[quoted text, click to view]

Re: What is class[] in CLR Profiler? petersol NO[at]SPAM online.microsoft.com (
8/4/2004 2:16:24 PM
I think building with VS.NET 2005 Beta should work fine, but I haven't
actually tried.

This posting is provided "AS IS" with no warranties, and confers no rights.

Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.

Thanks
Peter
Re: What is class[] in CLR Profiler? Lei Jiang
8/5/2004 10:35:05 AM
Thank you!

""Peter Sollich [MSFT]"" <petersol@online.microsoft.com> дÈëÏûÏ¢
news:YDCUb2ieEHA.3008@cpmsftngxa10.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button