Browse Source

Show alternative message if no GC Info is found

pull/3076/head
unknown 2 years ago
parent
commit
2b8bf8143d
  1. 17
      ILSpy.ReadyToRun/ReadyToRunDisassembler.cs

17
ILSpy.ReadyToRun/ReadyToRunDisassembler.cs

@ -50,13 +50,20 @@ namespace ICSharpCode.ILSpy.ReadyToRun @@ -50,13 +50,20 @@ namespace ICSharpCode.ILSpy.ReadyToRun
ReadyToRunMethod readyToRunMethod = runtimeFunction.Method;
WriteCommentLine(readyToRunMethod.SignatureString);
if (ReadyToRunOptions.GetIsShowGCInfo(null) && readyToRunMethod.GcInfo != null)
if (ReadyToRunOptions.GetIsShowGCInfo(null))
{
string[] lines = readyToRunMethod.GcInfo.ToString().Split(Environment.NewLine);
WriteCommentLine("GC info:");
foreach (string line in lines)
if (readyToRunMethod.GcInfo != null)
{
WriteCommentLine(line);
string[] lines = readyToRunMethod.GcInfo.ToString().Split(Environment.NewLine);
WriteCommentLine("GC info:");
foreach (string line in lines)
{
WriteCommentLine(line);
}
}
else
{
WriteCommentLine("GC Info is not available for this method");
}
}

Loading…
Cancel
Save