Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #3
0
 public static GcMode WithServer(this GcMode mode, bool value) => mode.WithCore(m => m.Server = value);
Beispiel #4
0
 private static GcMode WithCore(this GcMode mode, Action <GcMode> updateCallback)
 {
     mode = new GcMode().Apply(mode);
     updateCallback(mode);
     return(mode);
 }
Beispiel #5
0
 public static GcMode WithRetainVm(this GcMode mode, bool value) => mode.WithCore(m => m.RetainVm = value);
 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));
Beispiel #10
0
 public EnvMode(string id) : base(id)
 {
     GcCharacteristic[this] = new GcMode();
 }
 public static Job With(this Job job, GcMode gc) => job.WithGcMode(gc);
 [PublicAPI] public EnvironmentMode(string id) : base(id)
 {
     GcCharacteristic[this]            = new GcMode();
     PowerPlanModeCharacteristic[this] = new PowerPlanMode();
 }
Beispiel #13
0
 public static IJob With(this IJob job, GcMode gcMode) => job.With(j => j.GcMode                     = gcMode);
Beispiel #14
0
 public static GcMode WithHeapAffinitizeMask(this GcMode mode, int heapAffinitizeMask) => mode.WithCore(m => m.HeapAffinitizeMask = heapAffinitizeMask);
Beispiel #15
0
 public static GcMode WithConcurrent(this GcMode mode, bool value) => mode.WithCore(m => m.Concurrent = value);
Beispiel #16
0
 public static Job With(this Job job, GcMode gc) => job.Mutate(gc.ToMutator());
 public static GcMode WithCpuGroups(this GcMode mode, bool value) => mode.With(mode.CpuGroups.Mutate(value));
Beispiel #18
0
 public static GcMode WithCpuGroups(this GcMode mode, bool value) => mode.WithCore(m => m.CpuGroups = value);
 public static GcMode WithAllowVeryLargeObjects(this GcMode mode, bool value) => mode.With(mode.AllowVeryLargeObjects.Mutate(value));
Beispiel #20
0
 public static GcMode WithForce(this GcMode mode, bool value) => mode.WithCore(m => m.Force = value);
 public static GcMode WithServer(this GcMode mode, bool value) => mode.With(mode.Server.Mutate(value));
Beispiel #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);
Beispiel #24
0
 public static GcMode WithHeapCount(this GcMode mode, int heapCount) => mode.WithCore(m => m.HeapCount = heapCount);