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