开发者

Dottrace Dead vs. Garbage

开发者 https://www.devze.com 2022-12-27 21:50 出处:网络
After reading the dottrace documentation I realized that: Dead objects are objects deleted before the end point of the snapshot.

After reading the dottrace documentation I realized that:

  1. Dead objects are objects deleted before the end point of the snapshot.
  2. Garbage objects are objects allocated after the starting point and deleted 开发者_高级运维before the end point - in other words, "Garbage objects" is a subset of "Dead objects".

But after doing some profiling sessions, I could see that sometimes the number of "Garbage objects" is by far greater than the number of "Dead objects" of the same class (for example System.String). How should I interpret this phenomenon?


I found the answer by myself: "Dead objects" are the objects allocated BEFORE point A and freed before point B while "Garbage objects" are allocated AFTER point A and freed before point B.

0

精彩评论

暂无评论...
验证码 换一张
取 消