Skip to content

Instantly share code, notes, and snippets.

@AndreyAkinshin
Created February 8, 2016 09:56
Show Gist options
  • Save AndreyAkinshin/7691ac3389c194c4bcdf to your computer and use it in GitHub Desktop.
Save AndreyAkinshin/7691ac3389c194c4bcdf to your computer and use it in GitHub Desktop.
JitModules.cs
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