I'm using clrmd to get the method info returned from MethodJittingStartedTraceData:
using var dataTarget = DataTarget.AttachToProcess(process.Id, false);
var version = dataTarget.ClrVersions.First();
using var runtime = version.CreateRuntime();
MethodJittingStartedTraceData data = ...; // returned from EventPipeEventSource
var method = runtime.GetMethodByHandle((ulong)data.MethodID);
Console.WriteLine(method);
If the method is a generic method, clrmd cannot find the method and results in null being printed in the above code.
I'm using clrmd to get the method info returned from
MethodJittingStartedTraceData
:If the method is a generic method, clrmd cannot find the method and results in null being printed in the above code.