0

I used NGEN to create a Native Image. My understanding is that is it stored in the Native Image Cache (NIC). When I load my program, I would like to know if it s properly loaded from the NIC and not using the JIT compiler. How can I know if I m properly loading the image cache? I'm not getting the performance benefit I was expecting so I suspect that I m still using the JIT.

Thanks

Fred
  • 677
  • 2
  • 7
  • 21
  • So, to be clear, you're not trying to detect from within the program (which could be bad, having a program deliberately behave differently), but just some external means of checking the running program would be good for you here? – Damien_The_Unbeliever Mar 03 '16 at 06:58
  • Closed your question as duplicate assuming that you don't want to do this programatically. If you want to do programatically, drop a comment here. – Sriram Sakthivel Mar 03 '16 at 07:16
  • How can I do this programatically? Is the following correct? Assembly assembly = Assembly.GetExecutingAssembly(); if (assembly.GlobalAssemblyCache) MessageBox.Show("Loading from the GAC"); else MessageBox.Show("Loading from the NIC"); – Fred Mar 04 '16 at 01:46

0 Answers0