dotnet / dotnet/diagnostics

Add DumpHeapStat code to SOS.

Open
#51 0 comments 0 reactions 1 assignee Claimed by @mikem8361 View on GitHub
dotnet-dump enhancement
Dominant language
C++
Stars
1.3k
Forks
404
Avg merge
2d 3h
Merged PRs (30d)
38

Description

@mikem8361 commented on [Tue Jan 24 2017](https://github.com/dotnet/coreclr/issues/9098)

The SOS!DumpHeap implementation has two main perf hot spots: there is a check for break in AddStat function for each step in searching a binary tree, there is a linear search in allocation context array every time moving from one object to next one.

I'm adding more stat information. The latest addition is adding where certain type in certain generation appears most in a heap segment. HeapDumpW has a /crossRef option to dump every object into .csv files by heap segment and generation. So combining the two, I just go to a .csv file to look for certain type I have concern with.

Feng Yuan

---

@danmosemsft commented on [Tue Jan 24 2017](https://github.com/dotnet/coreclr/issues/9098#issuecomment-274986433)

UPloaded file and removed internal link
[DumpHeapStat.cs.txt](https://github.com/dotnet/coreclr/files/728336/DumpHeapStat.cs.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.