You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingSystem;usingSystem.Runtime.CompilerServices;usingSystem.Threading;staticclassPerfViewTierEventsTest{privatestaticvoidMain(){vart=newThread(Run);t.IsBackground=true;t.Start();Thread.Sleep(2000);Console.Write("Enter to stop: ");Console.ReadLine();}[MethodImpl(MethodImplOptions.NoInlining)]privatestaticvoidRun(){while(true)++s_value;}privatestaticints_value;}
From command prompt:
set COMPlus_TieredCompilation=0
Build and run the repro
After "Enter to stop:" is printed, start profiling in PerfView
After a few seconds, press enter on the app and wait for it to shut down
Stop profiling in PerfView
CPU stacks:
Name Exc % Exc Inc % Inc Fold When First Last
?!0x7ffe959f9216 93.6 3,568 93.7 3,572 0 _69999999999999999990___________ 250.452 3,858.991
Expected behavior is that the frame with the highest number of samples is correctly named and it is possible to drill into the source code to see sample counts by line.
From dotnet/coreclr#27238 (comment)
Repro:
From command prompt:
set COMPlus_TieredCompilation=0
"Enter to stop:"
is printed, start profiling in PerfViewCPU stacks:
Expected behavior is that the frame with the highest number of samples is correctly named and it is possible to drill into the source code to see sample counts by line.
Event stats:
Although counts are shown for the events, they are not listed in the Events view when PerfView is started with
-KeepAllEvents
.Also not sure why there would be so many of these events, looks like the counts may be incorrect as well.
The text was updated successfully, but these errors were encountered: