[DOTNET-ROTOR] Method Entry/Return
How do we capture each method invocation and return? Is it possible to capture its information as well? Thank you very much. === 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
Re: [DOTNET-ROTOR] Method Entry/Return
Take a look at the profiler, in sscli\samples\utilities\dnproprofiler. There is a dnprofiler.html that describes a bit about the profiler interface. You should be able to use the JITCOmpilationStarted() callback to instrument each method's IL as it is jitted. 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 8:30 AM To: [EMAIL PROTECTED] Subject: [DOTNET-ROTOR] Method Entry/Return How do we capture each method invocation and return? Is it possible to capture its information as well? Thank you very much. === 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
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Ā® 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