public void RuntimeExceptionCallbacksTest()
        {
            ProfilerHelpers.LaunchAppUnderProfiler(testApp: "RuntimeExceptionCallbacks_Debug_x64.exe", testScript: "RuntimeExceptionCallbacks.xml",
                                                   output: "RuntimeExceptionCallbacks.xml", isRejit: false, args: null);

            ProfilerHelpers.DiffResultToBaseline(output: "RuntimeExceptionCallbacks.xml", baseline: "RuntimeExceptionCallbacks.xml");
        }
Exemplo n.º 2
0
        public void Rejit_Instru_RemoveAllTest()
        {
            ProfilerHelpers.LaunchAppUnderProfiler(testApp: "InstruOperationsTests_Release_x64.exe", testScript: "Instru_RemoveAllTest.xml",
                                                   output: "Rejit_Instru_RemoveAllTest.xml", isRejit: true, args: "Instru_CreateErrorTest");

            ProfilerHelpers.DiffResultToBaseline(output: "Rejit_Instru_RemoveAllTest.xml", baseline: "Instru_RemoveAllTest.xml");
        }
 public void InstrMethodLoggingTestLevelAllWithNoLogLevel()
 {
     TestParameters.DisableMethodPrefix = false;
     TestParameters.DisableLogLevel     = true;
     TestParameters.MethodLogLevel      = LogLevel.All;
     ProfilerHelpers.LaunchAppAndCompareResult(testApp: "InstrumentationMethodLoggingTests_Debug_x64.exe", fileName: "InstrumentationMethodLoggingAllWithNoLogLevel.xml", args: null, regexCompare: true);
 }
Exemplo n.º 4
0
        public void Rejit_AddNop_SwitchTest2()
        {
            ProfilerHelpers.LaunchAppUnderProfiler(testApp: "BasicManagedTests_Release_x64.exe", testScript: "AddNop_SwitchTest2.xml",
                                                   output: "Rejit_AddNop_SwitchTest2.xml", isRejit: true, args: null);

            ProfilerHelpers.DiffResultToBaseline(output: "Rejit_AddNop_SwitchTest2.xml", baseline: "AddNop_SwitchTest2.xml");
        }
Exemplo n.º 5
0
        public void Rejit_ExceptionMultiTryCatchTest()
        {
            ProfilerHelpers.LaunchAppUnderProfiler(testApp: "ExceptionTests_Release_x64.exe", testScript: "ExceptionMultiTryCatchTest.xml",
                                                   output: "Rejit_ExceptionMultiTryCatchTest.xml", isRejit: true, args: null);

            ProfilerHelpers.DiffResultToBaseline(output: "Rejit_ExceptionMultiTryCatchTest.xml", baseline: "ExceptionMultiTryCatchTest.xml");
        }
Exemplo n.º 6
0
        public void ReplaceMethodTest()
        {
            //0,0,3,3,6,6,a,a,e,e

            //Original IL
            //IL_0000 ldc.i4.s 0xc
            //IL_0002 stloc.0

            //IL_0003 ldc.i4.s 0xb
            //IL_0005 stloc.1

            //IL_0006 ldloc.0
            //IL_0007 ldloc.1
            //IL_0008 sub
            //IL_0009 stloc.0

            //IL_000a ldloc.0
            //IL_000b ret

            //New IL (baseline)
            //IL_0000 ldc.i4.s 0xc
            //IL_0002 stloc.0

            //IL_0003 ldc.i4.s 0xb
            //IL_0005 stloc.1

            //IL_0006 ldloc.0
            //IL_0007 ldloc.1
            //IL_0008 sub
            //IL_0009 stloc.0

            //<--Begin new instructions
            //IL_000a ldloc.0
            //IL_000b ldc.i4.1
            //IL_000c sub
            //IL_000d stloc.0

            //-->End new instructions
            //IL_000e ldloc.0
            //IL_000f ret

            ProfilerHelpers.LaunchAppAndCompareResult("MethodReplacementTests_Release_x64", "Instru_MethodBaselineTest.xml");
        }
Exemplo n.º 7
0
 public void RoundTrip_ForTest_Debug()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("BasicManagedTests_Debug_x64.exe", "RoundTrip_ForTest_Debug.xml");
 }
Exemplo n.º 8
0
 public void Instru_InsterAfterTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("InstruOperationsTests_Release_x64", "Instru_InsertAfterTest.xml", "Instru_InsertAfterTest");
 }
 public void ExceptionTinyMethodTest2()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("ExceptionTests_Release_x64", "ExceptionTinyMethodTest2.xml");
 }
 public void TinyMethodTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("BasicManagedTests2_Release_x64.exe", "TinyMethodTest.xml");
 }
 public void AddNop_SwitchTest2()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("BasicManagedTests_Release_x64.exe", "AddNop_SwitchTest2.xml");
 }
 public void AddNop_ForTest_Debug()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("BasicManagedTests_Debug_x86.exe", "AddNop_ForTest_Debug.xml");
 }
 public void InstrMethodLoggingTest()
 {
     TestParameters.DisableMethodPrefix = false;
     ProfilerHelpers.LaunchAppAndCompareResult(testApp: "InstrumentationMethodLoggingTests_Debug_x64.exe", fileName: "InstrumentationMethodLogging.xml", args: null);
 }
 public void AddOperandTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("BasicManagedTests_Debug_x64.exe", "AddOperandTest.xml", "AddOperandTest");
 }
Exemplo n.º 15
0
 public void Instru_LocalsExisting()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("LocalTests_Debug_x64", "Instru_LocalsExisting.xml", "AddLocalsExisting");
 }
Exemplo n.º 16
0
 public void Instru_Locals()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("LocalTests_Release_x64", "Instru_Locals.xml", "AddLocals");
 }
 public void EmittedDynamicCodeTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("DynamicCodeTests_Debug_x64.exe", "DynamicEmittedCode.xml", "Emitted");
 }
 public void ExceptionFinallyTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("ExceptionTests_Release_x64", "ExceptionFinallyTest.xml");
 }
 public void RoundTrip_ExceptionMultiTryCatchTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("ExceptionTests_Release_x64", "RoundTrip_MultiTryCatchTest.xml");
 }
Exemplo n.º 20
0
 public void RoundTrip_SwitchTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("BasicManagedTests_Release_x64.exe", "RoundTrip_SwitchTest.xml");
 }
Exemplo n.º 21
0
 public static void LaunchAppAndCompareResult(string testApp, string fileName, string args = null, bool regexCompare = false)
 {
     // Usually we use the same file name for test script, baseline and test result
     ProfilerHelpers.LaunchAppUnderProfiler(testApp, fileName, fileName, false, args);
     ProfilerHelpers.DiffResultToBaseline(fileName, fileName, regexCompare);
 }
 public void InstrMethodLoggingTestLevelSome()
 {
     TestParameters.DisableMethodPrefix = false;
     TestParameters.MethodLogLevel      = LogLevel.Errors | LogLevel.InstrumentationResults;
     ProfilerHelpers.LaunchAppAndCompareResult(testApp: "InstrumentationMethodLoggingTests_Debug_x64.exe", fileName: "InstrumentationMethodLoggingSome.xml", args: null);
 }
 public void AddNop_SwitchTest2_Debug()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("BasicManagedTests_Debug_x64.exe", "AddNop_SwitchTest2_Debug.xml");
 }
Exemplo n.º 24
0
 public void Instru_EmptyMethodRemoveAllTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("InstruOperationsTests_Release_x64", "Instru_EmptyMethodRemoveAllTest.xml", "Instru_EmptyMethodTest");
 }
 public void AddNop_ArrayForeachTest()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("BasicManagedTests2_Release_x64.exe", "AddNop_ArrayForeachTest.xml");
 }
Exemplo n.º 26
0
 public void Instru_RemoveTest2()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("InstruOperationsTests_Release_x64", "Instru_RemoveTest2.xml", "Instru_CreateErrorTest");
 }
 public void SimpleInjectTest32()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("InjectToMscorlibTest_Release_x86", "InjectToMscorlibTest32.xml");
 }
 public void GetResponseAsync()
 {
     ProfilerHelpers.LaunchAppAndCompareResult("HttpMethodTests_Debug.exe", "HttpMethodTests_Debug.xml");
 }