Beispiel #1
0
        public long GetBytesTotal(HeapSnapshotInfo item)
        {
            FilteredHeapSnapshotInfo info = item;

            if (CurrentFilterData != null)
            {
                if (!CurrentFilterData.TryGetValue(item, out info))
                {
                    info = item;
                }
            }

            return((long)(info.BytesTotal));
        }
Beispiel #2
0
        public long GetAllocationCount(HeapSnapshotInfo item)
        {
            FilteredHeapSnapshotInfo info = item;

            if (CurrentFilterData != null)
            {
                if (!CurrentFilterData.TryGetValue(item, out info))
                {
                    info = item;
                }
            }

            return((long)(info.AllocationCount));
        }