public static bool CompareModuleAgainstSimpleName(string simpleName, TraceManagedModule managedModule) { if (managedModule.ModuleFile != null) { if ((String.Compare(managedModule.ModuleFile.Name, simpleName, StringComparison.OrdinalIgnoreCase) == 0) || (String.Compare(managedModule.ModuleFile.Name, (simpleName + ".il"), StringComparison.OrdinalIgnoreCase) == 0)) { return(true); } } return(false); }
public static string ComputeFilePathOnDiskForModule(TraceManagedModule managedModule) { string filePath = ""; if (managedModule.ModuleFile != null) { filePath = managedModule.ModuleFile.FilePath; string ildllstr = ".il.dll"; string ilexestr = ".il.exe"; if (!File.Exists(filePath) && filePath.EndsWith(ildllstr)) { filePath = filePath.Substring(0, filePath.Length - ildllstr.Length) + ".dll"; } else if (!File.Exists(filePath) && filePath.EndsWith(ilexestr)) { filePath = filePath.Substring(0, filePath.Length - ilexestr.Length) + ".exe"; } } return(filePath); }
public ModuleDescInfo(long id, TraceManagedModule traceManagedModule) { ID = id; TraceManagedModule = traceManagedModule; }
public LoadedModule(int clrInstanceID, TraceManagedModule managedModule) { ClrInstanceID = clrInstanceID; ManagedModule = managedModule; }