What is class[] in CLR Profiler?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Peter Sollich [MSFT] (petersol_at_online.microsoft.com)
Date: 08/02/04


Date: Mon, 2 Aug 2004 08:17:36 -0700

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
>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!
>
>
>
>.
>



Relevant Pages

  • Re: What is class[] in CLR Profiler?
    ... Thank you Peter. ... > CLRProfiler only outputs this if it's unable to obtain ... > subdirectory in the source code, ... > the documentation is ...
    (microsoft.public.dotnet.framework.clr)
  • Re: How to disable login after too many attempts
    ... Security auditors or some new PHB who doesn't know their tush ... have to get source code to do modifications. ... could scan the log file for the attempts and somehow disable the ... after hours to unlock an account when some manager can't get in because ...
    (comp.unix.admin)
  • invalid syntax - problems with CR (0x0a)
    ... machines due to Carriage Returns ... now appear in the source code. ... error message inside the log file: ... SyntaxError: invalid syntax ...
    (comp.lang.python)
  • Re: Strange nfilter/NewsProxy Behavior
    ... Subject: Converting Excel 2007 Nested "If" Statement to Excel 2003: ... not expect the code to touch the message body, ... log file very quickly.) ... The code change is noted in the source code, ...
    (sci.electronics.design)
  • clr profiler for net 2.0 - source code?
    ... I corrected some annoying stuff in previous version of CLRProfiler - ... exceptions mainly. ... Now I can't find source code for CLRProfiler for Net 2.0, ... Prev by Date: ...
    (microsoft.public.dotnet.framework)