示例#1
0
        public static EnvMode Parse(CharacteristicSet set)
        {
            var mode = new EnvMode();

            mode.Platform = mode.Platform.Mutate(set);
            mode.Jit      = mode.Jit.Mutate(set);
            mode.Runtime  = mode.Runtime.Mutate(set);
            mode.Affinity = mode.Affinity.Mutate(set);
            mode.Gc       = GcMode.Parse(set);
            return(mode);
        }
示例#2
0
        public static GcMode Parse(CharacteristicSet set)
        {
            var mode = new GcMode();

            mode.Server                = mode.Server.Mutate(set);
            mode.Concurrent            = mode.Concurrent.Mutate(set);
            mode.CpuGroups             = mode.CpuGroups.Mutate(set);
            mode.Force                 = mode.Force.Mutate(set);
            mode.AllowVeryLargeObjects = mode.AllowVeryLargeObjects.Mutate(set);
            return(mode);
        }
示例#3
0
 public static GcMode WithServer(this GcMode mode, bool value) => mode.WithCore(m => m.Server = value);
示例#4
0
 private static GcMode WithCore(this GcMode mode, Action <GcMode> updateCallback)
 {
     mode = new GcMode().Apply(mode);
     updateCallback(mode);
     return(mode);
 }
示例#5
0
 public static GcMode WithRetainVm(this GcMode mode, bool value) => mode.WithCore(m => m.RetainVm = value);
示例#6
0
 public static GcMode WithNoAffinitize(this GcMode mode, bool value) => mode.WithCore(m => m.NoAffinitize = value);
 public static GcMode WithConcurrent(this GcMode mode, bool value) => mode.With(mode.Concurrent.Mutate(value));
 public static GcMode With <T>(this GcMode mode, ICharacteristic <T> characteristic) => GcMode.Parse(mode.ToSet().Mutate(characteristic));
 public static GcMode WithForce(this GcMode mode, bool value) => mode.With(mode.Force.Mutate(value));
示例#10
0
 public EnvMode(string id) : base(id)
 {
     GcCharacteristic[this] = new GcMode();
 }
示例#11
0
 public static Job With(this Job job, GcMode gc) => job.WithGcMode(gc);
示例#12
0
 [PublicAPI] public EnvironmentMode(string id) : base(id)
 {
     GcCharacteristic[this]            = new GcMode();
     PowerPlanModeCharacteristic[this] = new PowerPlanMode();
 }
示例#13
0
 public static IJob With(this IJob job, GcMode gcMode) => job.With(j => j.GcMode                     = gcMode);
示例#14
0
 public static GcMode WithHeapAffinitizeMask(this GcMode mode, int heapAffinitizeMask) => mode.WithCore(m => m.HeapAffinitizeMask = heapAffinitizeMask);
示例#15
0
 public static GcMode WithConcurrent(this GcMode mode, bool value) => mode.WithCore(m => m.Concurrent = value);
示例#16
0
 public static Job With(this Job job, GcMode gc) => job.Mutate(gc.ToMutator());
示例#17
0
 public static GcMode WithCpuGroups(this GcMode mode, bool value) => mode.With(mode.CpuGroups.Mutate(value));
示例#18
0
 public static GcMode WithCpuGroups(this GcMode mode, bool value) => mode.WithCore(m => m.CpuGroups = value);
示例#19
0
 public static GcMode WithAllowVeryLargeObjects(this GcMode mode, bool value) => mode.With(mode.AllowVeryLargeObjects.Mutate(value));
示例#20
0
 public static GcMode WithForce(this GcMode mode, bool value) => mode.WithCore(m => m.Force = value);
示例#21
0
 public static GcMode WithServer(this GcMode mode, bool value) => mode.With(mode.Server.Mutate(value));
示例#22
0
 public static GcMode WithAllowVeryLargeObjects(this GcMode mode, bool value) => mode.WithCore(m => m.AllowVeryLargeObjects = value);
 public static Job With(this Job job, GcMode gc) => job.WithCore(j => EnvMode.GcCharacteristic[j] = gc);
示例#24
0
 public static GcMode WithHeapCount(this GcMode mode, int heapCount) => mode.WithCore(m => m.HeapCount = heapCount);