Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / August 2004

Tip: Looking for answers? Try searching our database.

What is class[] in CLR Profiler?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lei Jiang - 30 Jul 2004 06:28 GMT
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!
Peter Sollich [MSFT] - 02 Aug 2004 16:17 GMT
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
>-----Original Message-----
>I download the CLR profiler and run it. It's great and the documentation is
[quoted text clipped - 4 lines]
>
>.
Lei Jiang - 03 Aug 2004 05:29 GMT
Thank you Peter. Could I build the code in VS.NET 2005 Beta?

> Hi Lei,
>
[quoted text clipped - 56 lines]
> >
> >.
"Peter Sollich [MSFT]" - 04 Aug 2004 15:16 GMT
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
Lei Jiang - 05 Aug 2004 03:35 GMT
Thank you!

> I think building with VS.NET 2005 Beta should work fine, but I haven't
> actually tried.
[quoted text clipped - 6 lines]
> Thanks
> Peter

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.