GCMemoryInfo Yapı
Tanım
Çöp toplama bilgilerini almak için kullanılabilecek bir API kümesi sağlar.Provides a set of APIs that can be used to retrieve garbage collection information.
public value class GCMemoryInfo
public struct GCMemoryInfo
type GCMemoryInfo = struct
Public Structure GCMemoryInfo
- Devralma
Açıklamalar
GC Index ,, 1 ' den başlayan ve her GC ile artan şekilde tanımlanır.A GC is identified by its Index, which starts from 1 and increases with each GC. Mevcut olmayan bir GC isterseniz, örneğin, bir GC GetGCMemoryInfo olmadan önce yöntemi çağırdıysanız ya da bır GC GCKind.FullBlocking ve tam engelleme varsa, tüm 0 ' lar dahil olmak üzere tüm 0 ' ı alırsınız Index .If you are asking for a GC that doesn't exist, for example, you called the GetGCMemoryInfo method before a GC happened, or you're asking for a GC of GCKind.FullBlocking and no full blocking GCs have happened, you will get all 0's in the info, including the Index. Dizin 0 ' ı kullanarak hiçbir GCs veya belirttiğiniz türde GCs 'yi tespit edebilirsiniz.You can use index 0 to detect that no GCs, or no GCs of the kind you specified, have occurred.
Özellikler
Compacted |
Bunun bir sıkıştırma GC olup olmadığını gösteren bir değer alır.Gets a value that indicates if this is a compacting GC or not. |
Concurrent |
Bunun eşzamanlı bir GC (BGC) olup olmadığını gösteren bir değer alır.Gets a value that indicates if this is a concurrent GC (BGC) or not. |
FinalizationPendingCount |
Bu GC 'nin sonlandırılması için hazırlamış olan nesne sayısını alır.Gets the number of objects that are ready for finalization that this GC observed. |
FragmentedBytes |
Son çöp toplama oluştuğunda toplam parçalanmayı alır.Gets the total fragmentation when the last garbage collection occurred. |
Generation |
Bu GC 'nin toplandığı üretimi alır.Gets the generation this GC collected. Kuşak, daha da çok daha da toplanmış bir nesil.Collecting a generation also collected younger generations. |
GenerationInfo |
Tüm nesiller için oluşturma bilgilerini alır.Gets the generation information for all generations. |
HeapSizeBytes |
Son çöp toplama oluştuğunda toplam yığın boyutunu alır.Gets the total heap size when the last garbage collection occurred. |
HighMemoryLoadThresholdBytes |
Son çöp toplama oluştuğunda yüksek bellek yükü eşiğini alır.Gets the high memory load threshold when the last garbage collection occurred. |
Index |
Bu GC 'nin dizinini alır.Gets the index of this GC. GC dizinleri 1 ile başlar ve GC 'nin başlangıcında artar.GC indices start with 1 and are increased at the beginning of a GC. Bilgiler bir GC sonunda güncelleştirildiğinden, bu, daha önce tamamlanan bir ön plan GC 'den daha küçük bir dizin ile arka plan GC bilgilerini alabileceğiniz anlamına gelir.Since the information is updated at the end of a GC, this means you can get the information for a background GC with a smaller index than a foreground GC that finished earlier. |
MemoryLoadBytes |
Son çöp toplama oluştuğunda bellek yükünü alır.Gets the memory load when the last garbage collection occurred. |
PauseDurations |
Duraklatma sürelerini alır.Gets the pause durations. GCs 'yi engellemek için bir duraklatma vardır; arka plan GC için iki vardır.For blocking GCs, there is one pause; for background GC, there are two. |
PauseTimePercentage |
GC 'nin şimdiye kadarki duraklatma süresi yüzdesini alır.Gets the pause time percentage in the GC so far. Duraklatma süresi% 1,2 ise, bu özelliğin değeri 1,2 ' dir.If the pause time is 1.2%, this property's value is 1.2. Değer, tüm GC duraklamaları toplamı alınarak hesaplanır ve bu, çalışma zamanı yüklendikten sonra işlemin toplam geçen süresine göre bölünür.The value is calculated by taking the sum of all GC pauses so far and dividing that by the total elapsed time of the process since the runtime was loaded. Bu çalışan sayaç her GC 'nin sonunda güncelleştirilir.This running counter is updated at the end of each GC. Birbirinden ayırt etmez GCKind .It does not distinguish between GCKind. Yani, her GC 'de, hesaplanan değer güncellenir ve bu özelliğe eriştiğinizde, en son hesaplanan değeri alır.That is, at every GC, the calculated value is updated, and when you access this property, it gets the latest calculated value. |
PinnedObjectsCount |
Bu GC 'nin gözlemlediği sabitlenmiş nesne sayısını alır.Gets the number of pinned objects this GC observed. |
PromotedBytes |
Bu GC için yükseltilen baytları alır.Gets the promoted bytes for this GC. |
TotalAvailableMemoryBytes |
Çöp toplayıcısının son çöp toplama gerçekleştiği sırada kullanacağı toplam kullanılabilir belleği alır.Gets the total available memory for the garbage collector to use when the last garbage collection occurred. |
TotalCommittedBytes |
Yönetilen yığının toplam kaydedilmiş baytlarını alır.Gets the total committed bytes of the managed heap. |