[acceptance-tests] Update the profiler-stress runner for removed options.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Thu, 13 Jul 2017 11:54:39 +0000 (13:54 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 14 Jul 2017 18:24:52 +0000 (20:24 +0200)
acceptance-tests/profiler-stress/runner.cs

index 302e43e639228c097c5a13eb74053c25662646b6..ce35b9a4b05632a0530d30f7bc6847deca5b1c44 100644 (file)
@@ -45,23 +45,16 @@ namespace Mono.Profiling.Tests.Stress {
        static class Program {
 
                static readonly string[] _options = new [] {
-                       "domain",
-                       "assembly",
-                       "module",
-                       "class",
-                       "jit",
                        "exception",
-                       "gcalloc",
-                       "gc",
-                       "thread",
-                       // "calls", // Way too heavy.
                        "monitor",
+                       "gc",
+                       "gcalloc",
                        "gcmove",
                        "gcroot",
-                       "context",
+                       "gchandle",
                        "finalization",
                        "counter",
-                       "gchandle",
+                       "jit",
                };
 
                static readonly TimeSpan _timeout = TimeSpan.FromHours (6);
@@ -96,7 +89,7 @@ namespace Mono.Profiling.Tests.Stress {
                                var bench = benchmarks [i];
 
                                var sampleFreq = rand.Next (-1000, 1001);
-                               var sampleMode = rand.Next (0, 2) == 1 ? "real" : "process";
+                               var sampleMode = rand.Next (0, 2) == 1 ? "-real" : string.Empty;
                                var maxSamples = rand.Next (0, cpus * 2000 + 1);
                                var heapShotFreq = rand.Next (-10, 11);
                                var maxFrames = rand.Next (0, 33);
@@ -107,7 +100,7 @@ namespace Mono.Profiling.Tests.Stress {
                                var profOptions = $"maxframes={maxFrames},{string.Join (",", options)},output=/dev/null";
 
                                if (sampleFreq > 0)
-                                       profOptions += $",sample={sampleFreq},sampling-{sampleMode},maxsamples={maxSamples}";
+                                       profOptions += $",sample{sampleMode}={sampleFreq},maxsamples={maxSamples}";
 
                                if (heapShotFreq > 0)
                                        profOptions += $",heapshot={heapShotFreq}gc";