天天看點

.Net性能分析工具Profile

Profile

Profile是內建在Microsoft Visual Studio開發工具中的一款集GPU、CPU、記憶體使用率等多種分析功能于一身的工具。

1.發現

找到Visual Studio最上方的【調試】->【性能探查器】即可看到選擇界面找到您想分析的具體内容。

.Net性能分析工具Profile
.Net性能分析工具Profile

2.使用

這裡我選擇分析内容是【記憶體使用率】,然後點選左下角的【開始】。

.Net性能分析工具Profile
.Net性能分析工具Profile

3.運作效果

Part1 - 分析曲線圖,會動态展示記憶體的動态的變化以及标記GC回收的時機。

.Net性能分析工具Profile

Part2- 分析的過程中需要點選【拍攝快照】記錄需要針對檢視的某一時刻。

.Net性能分析工具Profile

Part3-當分析結束時點選【停止收集】

.Net性能分析工具Profile

Part4-點選藍色的字型即可檢視對應的分析内容

.Net性能分析工具Profile

Part5-檢視堆棧和引用等資訊

.Net性能分析工具Profile
.Net性能分析工具Profile

繼續閱讀