Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. using System;
  2. using System.Diagnostics;
  3. using System.Linq;
  4.  
  5. public static class JitModules
  6. {
  7. public static void Main()
  8. {
  9. Console.WriteLine("OS: " + Environment.OSVersion.VersionString);
  10. Console.WriteLine("CLR: " + Environment.Version);
  11.  
  12. Console.WriteLine("JIT:");
  13. var allModules = Process.GetCurrentProcess().Modules.OfType<ProcessModule>();
  14. var jitModules = allModules.Where(module => module.ModuleName.Contains("jit"));
  15. foreach (var module in jitModules)
  16. Console.WriteLine(" " + module.FileName);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement