21 Mart 2018 Çarşamba

YourKit

Retained Heap Ne Demek?
Açıklaması şöyle. Retained heap bir nesnenin kendisi ve üye alanlarını oluşturan tüm nesnelerin toplamıdır. Nesnenin bir ağacın kök düğümü olduğunu düşünürsek, kök düğüm tek başına çok bellek kullanmayabilir, ancak tüm alt düğümlerini de hesaba katarsak retained memory yüksek olabilir.
Shallow heap is the memory consumed by one object. An object needs 32 or 64 bits (depending on the OS architecture) per reference, 4 bytes per Integer, 8 bytes per Long, etc. Depending on the heap dump format, the size may be adjusted (e.g. aligned to 8, etc.) to better model the real consumption of the VM.

A retained set of X is the set of objects that would be removed by GC when X is garbage collected.

A retained heap of X is the sum of shallow sizes of all objects in the retained set of X, i.e. memory kept alive by X.

Generally speaking, the shallow heap of an object is its size in the heap. The retained size of the same object is the amount of heap memory that will be freed when the object is garbage collected.


Hiç yorum yok:

Yorum Gönder