I am developing a .Net profiler.. I use ILRewriting for this..
I need to trace the managed thread creations and destroys.
Need to know the threading related function that will be called at the beginning of the thread and during the end of the thread , i can inject my code to it and record whenever the event happens.
Any ideas about the default function that will be called at the time of thread creation and ends..??
OR else is there any other way to capture the managed thread creation and destroying events??
I know that we can trace by setting the threading event mask.. but i need to capture particular managed threads not all the threads..