-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MemoryAllocatedForJitCode ETW Event missing in trace, but CLRStackWalk still fires #102004
Comments
Adding @kunalspathak for thoughts. It seems this event was added on #44030. |
@vvuk it's possible this is an issue specific to xperf. Would you mind trying with https://github.com/microsoft/perfview and reporting back if it correctly emits the event? |
Hmm, sure, but I'm not sure why xperf vs perfview would matter here -- it's the coreclr runtime that's doing the event emitting. With a profile captured by PerfView (after turning on a bunch of the .net etc flags), here's a sample of what I see in the .etl (via dump output) looking at one process, and
There's the |
Description
When the ETW JIT keyword is enabled with Verbose along with the STACK keyword (at Info in this specific case, but I don't think that matters), it looks like
MethodJittingStarted
events are followed by two stack traces. The second one is coming from theMemoryAllocatedForJitCode
event callout, but that event is not making it into the trace.Reproduction Steps
xperf -start UserSession -on Microsoft-Windows-DotNETRuntime:0x40000000:4+Microsoft-Windows-DotNETRuntime:0x30:5
, run some dotnet thing,xperf -stop -d foo.etl
. Then probablyxperf -i foo.etl -a dumper
or similar and look at the events.Expected behavior
MemoryAllocatedForJitCode
event should be included in the trace. Obviously this is minor, but I did spend a bunch of time trying to figure out why stacks weren't lining up with events (other than no-stack events) :)Actual behavior
The event is missing, but it looks like it at least tried to fire (FireEtw... was called), and its Stackwalk fires. See two stacks in the image below. The first little blue square on the timeline is the
MethodJittingStarted
event.Regression?
No response
Known Workarounds
No response
Configuration
dotnet 8.0.204
Other information
No response
The text was updated successfully, but these errors were encountered: