-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
149 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
MemoScope/Modules/ThreadException/ClrExceptionInformation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using BrightIdeasSoftware; | ||
using MemoScope.Core; | ||
using MemoScope.Modules.StackTrace; | ||
using Microsoft.Diagnostics.Runtime; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace MemoScope.Modules.ThreadException | ||
{ | ||
public class ClrExceptionInformation | ||
{ | ||
[OLVColumn(Width=450)] | ||
public string TypeName { get; } | ||
[OLVColumn(Width = 500)] | ||
public string Message { get; } | ||
|
||
public List<StackFrameInformation> StackFrames { get; } | ||
private ClrException exception; | ||
|
||
public ClrExceptionInformation(ClrDump clrDump, ClrException exception) | ||
{ | ||
this.exception = exception; | ||
Message = clrDump.Eval(() => exception.Message); | ||
StackFrames = clrDump.Eval(() => exception.StackTrace.Select(frame => new StackFrameInformation(clrDump, frame))).ToList(); | ||
TypeName = exception.Type.Name; | ||
} | ||
} | ||
} |
93 changes: 73 additions & 20 deletions
93
MemoScope/Modules/ThreadException/ThreadExceptionModule.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters