Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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;
 }
Esempio n. 4
0
 public LoadedModule(int clrInstanceID, TraceManagedModule managedModule)
 {
     ClrInstanceID = clrInstanceID;
     ManagedModule = managedModule;
 }