How to get a running log of fnuctions that are Jitting.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an effective way to get a running log of JITTED functions as a program executes? We have a process monitor that is telling us that 2000+ functions are jitting just to get to our to the first screen - which is more than we are expecting

Thanks.
 
You can do this with the profiler API. Keep in mind that when your app
domain starts there are a non-trivial number of framework methods that will
be jitted.

--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com/blogs/mickey



Dave Harris said:
Is there an effective way to get a running log of JITTED functions as a
program executes? We have a process monitor that is telling us that 2000+
functions are jitting just to get to our to the first screen - which is more
than we are expecting.
 
You can do this with the profiler API. Keep in mind that when your app
domain starts there are a non-trivial number of framework methods that will
be jitted.

Out of interest, do you know how much of the framework *isn't* pre-
jitted? I thought that the main framework had already been pre-jitted,
possibly with a much heavier set of optimisations than ngen normally
gives. Can't remember where I read it though - could be complete
rubbish.
 
If you look in the assembly pseudo-folder, you can see which assemblies are
pre-jitted. MsCorLib, System, and several others are available with native
versions, but most of the web assemblies, System.Data and other commonly
used assemblies aren't.

--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com/blogs/mickey
 
Back
Top