public ThreadExceptionDetailView(int ManagedThreadId, uint OSThreadId, string stackFrames, string exceptionDetails) { Span = new ContentSpan($@" Managed Thread ID: {ManagedThreadId}, OS Thread ID: {OSThreadId} {stackFrames} {exceptionDetails}"); }
public ProcessesSummaryView(IEnumerable <ProcessInfo> processes) { var total = processes.Count(); var running = processes.Count(v => v.State == "running"); var sleeping = processes.Count(v => v.State == "sleeping"); var threads = processes.Sum(v => v.NumberOfThreads); Span = new ContentSpan($@" Processes: {total} total, {running} running, {sleeping} sleeping, {threads} threads 22:27:52 Load Avg: 1.80, 1.92, 2.06 CPU usage: 6.47% user, 3.76% sys, 89.75% idle SharedLibs: 147M resident, 49M data, 32M linkedit. MemRegions: 109904 total, 2311M resident, 68M private, 793M shared. PhysMem: 8102M used (2150M wired), 89M unused. VM: 1586G vsize, 1113M framework vsize, 67722816(0) swapins, 71848748(0) swapouts. Networks: packets: 5742250/5467M in, 5175598/572M out. Disks: 33227518/502G read, 16839665/472G written. "); }
protected bool Equals(ContentSpan other) => string.Equals(Content, other.Content);
public void When_a_span_has_no_parent_then_Root_returns_itself() { var span = new ContentSpan("some content"); span.Root.Should().BeSameAs(span); }
public virtual void VisitContentSpan(ContentSpan contentSpan) { }
public override void VisitContentSpan(ContentSpan span) => VisitedSpans.Add(span);
public SplitterView() { Span = new ContentSpan("=========================================="); }