private static bool TryGetShortInfoForPredefinedJobs(IJob job, out string shortInfo)
        {
            shortInfo = null;

            if (job.Equals(Job.LegacyJitX86))
            {
                shortInfo = "LegacyX86";
            }
            if (job.Equals(Job.LegacyJitX64))
            {
                shortInfo = "LegacyX64";
            }
            if (job.Equals(Job.RyuJitX64))
            {
                shortInfo = "RyuJitX64";
            }
            if (job.Equals(Job.Dry))
            {
                shortInfo = "Dry";
            }
            if (job.Equals(Job.Mono))
            {
                shortInfo = "Mono";
            }
            if (job.Equals(Job.MonoLlvm))
            {
                shortInfo = "MonoLlvm";
            }
            if (job.Equals(Job.Clr))
            {
                shortInfo = "Clr";
            }
            if (job.Equals(Job.Core))
            {
                shortInfo = "Core";
            }
            if (job.Equals(Job.ConcurrentServerGC))
            {
                shortInfo = "ConcurrentServerGC";
            }
            if (job.Equals(Job.ConcurrentWorkstationGC))
            {
                shortInfo = "ConcurrentWorkstationGC";
            }

            return(!string.IsNullOrEmpty(shortInfo));
        }
Esempio n. 2
0
        private static bool TryGetShortInfo(IJob job, out string shortInfo)
        {
            shortInfo = null;

            if (job.Equals(Job.LegacyJitX86))
            {
                shortInfo = "LegacyX86";
            }
            if (job.Equals(Job.LegacyJitX64))
            {
                shortInfo = "LegacyX64";
            }
            if (job.Equals(Job.RyuJitX64))
            {
                shortInfo = "RyuJitX64";
            }
            if (job.Equals(Job.Dry))
            {
                shortInfo = "Dry";
            }
            if (job.Equals(Job.Mono))
            {
                shortInfo = "Mono";
            }
            if (job.Equals(Job.Clr))
            {
                shortInfo = "Clr";
            }
            if (job.Equals(Job.Dnx))
            {
                shortInfo = "Dnx";
            }
            if (job.Equals(Job.Core))
            {
                shortInfo = "Core";
            }

            return(!string.IsNullOrEmpty(shortInfo));
        }
        public static string GetShortInfo(this IJob job, IList <IJob> allJobs)
        {
            // TODO: make it automatically
            if (job.Equals(Job.LegacyJitX86))
            {
                return("LegacyX86");
            }
            if (job.Equals(Job.LegacyJitX64))
            {
                return("LegacyX64");
            }
            if (job.Equals(Job.RyuJitX64))
            {
                return("RyuJitX64");
            }
            if (job.Equals(Job.Dry))
            {
                return("Dry");
            }
            if (job.Equals(Job.Mono))
            {
                return("Mono");
            }
            if (job.Equals(Job.Clr))
            {
                return("Clr");
            }
            var defaultJobProperties = Job.Default.GetAllProperties().ToArray();
            var ownProperties        = job.GetAllProperties().ToArray();
            var n = ownProperties.Length;
            var targetProperties = Enumerable.Range(0, n).
                                   Where(i => ownProperties[i].Value != defaultJobProperties[i].Value &&
                                         allJobs.Select(j => j.GetAllProperties().ToArray()[i].Value).Distinct().Count() > 1).
                                   Select(i => ownProperties[i]);

            return(string.Join("_", targetProperties.Select(GetShortInfoForProperty)));
        }
        private static bool TryGetShortInfoForPredefinedJobs(IJob job, out string shortInfo)
        {
            shortInfo = null;

            if (job.Equals(Job.LegacyJitX86))
                shortInfo = "LegacyX86";
            if (job.Equals(Job.LegacyJitX64))
                shortInfo = "LegacyX64";
            if (job.Equals(Job.RyuJitX64))
                shortInfo = "RyuJitX64";
            if (job.Equals(Job.Dry))
                shortInfo = "Dry";
            if (job.Equals(Job.Mono))
                shortInfo = "Mono";
            if (job.Equals(Job.MonoLlvm))
                shortInfo = "MonoLlvm";
            if (job.Equals(Job.Clr))
                shortInfo = "Clr";
            if (job.Equals(Job.Core))
                shortInfo = "Core";
            if (job.Equals(Job.ConcurrentServerGC))
                shortInfo = "ConcurrentServerGC";
            if (job.Equals(Job.ConcurrentWorkstationGC))
                shortInfo = "ConcurrentWorkstationGC";

            return !string.IsNullOrEmpty(shortInfo);
        }
Esempio n. 5
0
        private static bool TryGetShortInfo(IJob job, out string shortInfo)
        {
            shortInfo = null;

            if (job.Equals(Job.LegacyJitX86))
                shortInfo = "LegacyX86";
            if (job.Equals(Job.LegacyJitX64))
                shortInfo = "LegacyX64";
            if (job.Equals(Job.RyuJitX64))
                shortInfo = "RyuJitX64";
            if (job.Equals(Job.Dry))
                shortInfo = "Dry";
            if (job.Equals(Job.Mono))
                shortInfo = "Mono";
            if (job.Equals(Job.Clr))
                shortInfo = "Clr";
            if (job.Equals(Job.Dnx))
                shortInfo = "Dnx";
            if (job.Equals(Job.Core))
                shortInfo = "Core";

            return !string.IsNullOrEmpty(shortInfo);
        }