开发者

Dottrace Dead vs. Garbage

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜