From: Brian Robbins Date: Sat, 24 Feb 2018 05:47:40 +0000 (-0800) Subject: Delete eventpipetrace test. (#16534) X-Git-Tag: accepted/tizen/unified/20190422.045933~2887 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d3b6b3fd9b62ea5013cb6fcfd87d341d528d28a;p=platform%2Fupstream%2Fcoreclr.git Delete eventpipetrace test. (#16534) --- diff --git a/tests/issues.targets b/tests/issues.targets index e32cc95..49494d2 100644 --- a/tests/issues.targets +++ b/tests/issues.targets @@ -190,9 +190,6 @@ 15919 - - 15924 - diff --git a/tests/src/dirs.proj b/tests/src/dirs.proj index e1f8005..daa39d6 100644 --- a/tests/src/dirs.proj +++ b/tests/src/dirs.proj @@ -31,7 +31,6 @@ - diff --git a/tests/src/tracing/eventpipetrace/EventPipeTrace.cs b/tests/src/tracing/eventpipetrace/EventPipeTrace.cs deleted file mode 100644 index a85271a..0000000 --- a/tests/src/tracing/eventpipetrace/EventPipeTrace.cs +++ /dev/null @@ -1,110 +0,0 @@ -using System; -using System.IO; -using Tracing.Tests.Common; -using Microsoft.Diagnostics.Tracing; -using Microsoft.Diagnostics.Tracing.Parsers; -using Microsoft.Diagnostics.Tracing.Parsers.Clr; - -namespace Tracing.Tests -{ - class EventPipeTrace - { - private static int allocIterations = 10000; - private static int gcIterations = 10; - - static void AssertEqual(T left, T right) where T : IEquatable - { - if (left.Equals(right) == false) - { - throw new Exception(string.Format("Values were not equal! {0} and {1}", left, right)); - } - } - - static int Main(string[] args) - { - bool pass = true; - bool keepOutput = false; - - // Use the first arg as an output filename if there is one - string outputFilename = null; - if (args.Length >= 1) { - outputFilename = args[0]; - keepOutput = true; - } - else { - outputFilename = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".netperf"; - } - - try - { - Console.WriteLine("\tStart: Enable tracing."); - TraceControl.EnableDefault(outputFilename); - Console.WriteLine("\tEnd: Enable tracing.\n"); - - Console.WriteLine("\tStart: Generating CLR events"); - // Allocate for allocIterations iterations. - for(int i=0; i 0; - pass &= gcTriggerCount == gcIterations; - } - finally { - if (keepOutput) - { - Console.WriteLine("\n\tOutput file: {0}", outputFilename); - } - else - { - System.IO.File.Delete(outputFilename); - } - } - - return pass ? 100 : 0; - } - } -} diff --git a/tests/src/tracing/eventpipetrace/eventpipetrace.csproj b/tests/src/tracing/eventpipetrace/eventpipetrace.csproj deleted file mode 100644 index ec7305a..0000000 --- a/tests/src/tracing/eventpipetrace/eventpipetrace.csproj +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Debug - AnyCPU - 2.0 - {8E3244CB-407F-4142-BAAB-E7A55901A5FA} - Exe - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - ..\..\ - BuildAndRun - $(DefineConstants);STATIC - true - 0 - - - - - - - False - - - - - - - - \ No newline at end of file