Re: Method Entry/Return

Barry Bond <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.rotor
Message-ID <4A8D7C3204072A46A7DC234B2D81C1CC656E1B@RED-MSG-43.redmond.corp.microsoft.com>
A while back, Jan Kotas posted an excellent sample of using the
profiling interface to instrument IL -
http://www.mail-archive.com/[email protected]/msg00510.ht
ml, or Google for "JITCompilationStarted".


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

-----Original Message-----
From: Discussion of the Rotor Shared Source CLI implementation
[mailto:[email protected]] On Behalf Of SUBSCRIBE
DOTNET-ROTOR Memomana
Sent: Wednesday, November 26, 2003 1:38 PM
To: [email protected]
Subject: Re: [DOTNET-ROTOR] Method Entry/Return

The CProfilerCallBack::JITCompilationStarted function only displays the
method name that is being jitted.

if ( GetMethodNameFromFunctionId( functionId, wszClass, wszMethod ) )
{
   ProfilerPrintf("JITCompilationStarted:
%ls::%ls\n",wszClass,wszMethod);
}
else
{
   ProfilerPrintf( "JITCompilationStarted\n" );
}

I found that the GetMethodNameFromFunctionId function is a helper
function
to find the method name only.

How would we use the JITCompilationStarted() callback to instrument each
method's IL as it is jitted?

Moreover, when I set the DN_PROFILER_MASK to, for example, 0x20, the
profiler crashed. It complained: "Fatal stack overflow error."

Thank you.

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.