Skip to content

Commit

Permalink
Disable COR_PRF_HIGH_DISABLE_TIERED_COMPILATION
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Dec 11, 2024
1 parent 8aecaa4 commit b6020c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ HRESULT STDMETHODCALLTYPE CorProfiler::Initialize(IUnknown* cor_profiler_info_un
}

// set event mask to subscribe to events and disable NGEN images
hr = this->info_->SetEventMask2(event_mask, COR_PRF_HIGH_ADD_ASSEMBLY_REFERENCES);
hr = this->info_->SetEventMask2(event_mask,
COR_PRF_HIGH_ADD_ASSEMBLY_REFERENCES | COR_PRF_HIGH_DISABLE_TIERED_COMPILATION);
if (FAILED(hr))
{
FailProfiler(Warn, "Failed to attach profiler: unable to set event mask.")
Expand Down
5 changes: 0 additions & 5 deletions test/IntegrationTests/ContinuousProfilerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,10 @@ private static List<string> CreateExpectedStackTrace()
{
var stackTrace = new List<string>
{
"System.Threading.Thread.Sleep(System.TimeSpan)",
"TestApplication.ContinuousProfiler.Fs.ClassFs.methodFs(System.String)",
"TestApplication.ContinuousProfiler.Vb.ClassVb.MethodVb(System.String)",
"My.Custom.Test.Namespace.TestDynamicClass.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object\u0026)",
"System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0, T1, T2](System.Runtime.CompilerServices.CallSite, T0, T1, T2)",
"My.Custom.Test.Namespace.ClassENonStandardCharacters\u0104\u0118\u00D3\u0141\u017B\u0179\u0106\u0105\u0119\u00F3\u0142\u017C\u017A\u015B\u0107\u011C\u0416\u13F3\u2CC4\u02A4\u01CB\u2093\u06BF\u0B1F\u0D10\u1250\u3023\u203F\u0A6E\u1FAD_\u00601.GenericMethodDFromGenericClass[TMethod, TMethod2](TClass, TMethod, TMethod2)",
"My.Custom.Test.Namespace.ClassD`21.MethodD(T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, Unknown)",
"My.Custom.Test.Namespace.GenericClassC`1.GenericMethodCFromGenericClass[T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, Unknown)",
"My.Custom.Test.Namespace.GenericClassC`1.GenericMethodCFromGenericClass(T)"
};

Expand All @@ -82,7 +78,6 @@ private static List<string> CreateExpectedStackTrace()
stackTrace.Add("Unknown_Native_Function(unknown)");
}
#endif
stackTrace.Add("My.Custom.Test.Namespace.ClassA.InternalClassB`2.DoubleInternalClassB.TripleInternalClassB`1.MethodB[TB](System.Int32, TC[], TB, TD, System.Collections.Generic.IList`1[TA], System.Collections.Generic.IList`1[System.String])");
stackTrace.Add("My.Custom.Test.Namespace.ClassA.<MethodAOthers>g__Action|7_0[T](System.Int32)");
stackTrace.Add("My.Custom.Test.Namespace.ClassA.MethodAOthers[T](System.String, System.Object, My.Custom.Test.Namespace.CustomClass, My.Custom.Test.Namespace.CustomStruct, My.Custom.Test.Namespace.CustomClass[], My.Custom.Test.Namespace.CustomStruct[], System.Collections.Generic.List`1[T])");
stackTrace.Add("My.Custom.Test.Namespace.ClassA.MethodAPointer(System.Int32*)");
Expand Down

0 comments on commit b6020c8

Please sign in to comment.