Hi,
I have instrumented all the functions for a web request when it comes inside the JITCompilationStarted function.
During instrumentation I inject the helper function calls to the existing function's IL at the entry and exit of the function.
After instrumentation , a particular method is taking about 60 seconds which would take only 6 seconds. While analyzing the reason for the overhead i found only two functions making more than "26000000" calls each. Hence there was more overhead in the request.
Here , I cannot blindly filter the function from profiling itself. I need to profile the function. But is that possible to reset that particular method's IL from changed to original IL ? If that is possible , I can reset the method's IL once i see that the function is making too many calls that will cause the overhead.
But again for the next request there should be a way to instrument that method again and inject my helper function calls.
I am badly starving for ideas.
Thanks,
./Selva