Created
February 8, 2016 09:56
-
-
Save AndreyAkinshin/7691ac3389c194c4bcdf to your computer and use it in GitHub Desktop.
JitModules.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
public static class JitModules | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("OS: " + Environment.OSVersion.VersionString); | |
Console.WriteLine("CLR: " + Environment.Version); | |
Console.WriteLine("JIT:"); | |
var allModules = Process.GetCurrentProcess().Modules.OfType<ProcessModule>(); | |
var jitModules = allModules.Where(module => module.ModuleName.Contains("jit")); | |
foreach (var module in jitModules) | |
Console.WriteLine(" " + module.FileName); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment