You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/GCGenerationInfo.xml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@
20
20
</Attribute>
21
21
</Attributes>
22
22
<Docs>
23
-
<summary>To be added.</summary>
23
+
<summary>Represents the size and the fragmenation of a generation on entry and on exit of the GC reported in <seecref="T:System.GCMemoryInfo" />.</summary>
24
24
<remarks>To be added.</remarks>
25
25
</Docs>
26
26
<Members>
@@ -40,8 +40,8 @@
40
40
<ReturnType>System.Int64</ReturnType>
41
41
</ReturnValue>
42
42
<Docs>
43
-
<summary>To be added.</summary>
44
-
<value>To be added.</value>
43
+
<summary>Gets the fragmentation in bytes on exit from the reported collection.</summary>
44
+
<value>A number representing the fragmentation in bytes on exit from the reported collection.</value>
45
45
<remarks>To be added.</remarks>
46
46
</Docs>
47
47
</Member>
@@ -61,8 +61,8 @@
61
61
<ReturnType>System.Int64</ReturnType>
62
62
</ReturnValue>
63
63
<Docs>
64
-
<summary>To be added.</summary>
65
-
<value>To be added.</value>
64
+
<summary>Gets the fragmentation in bytes on entry to the reported collection.</summary>
65
+
<value>A number representing the fragmentation in bytes on entry to the reported collection.</value>
66
66
<remarks>To be added.</remarks>
67
67
</Docs>
68
68
</Member>
@@ -82,8 +82,8 @@
82
82
<ReturnType>System.Int64</ReturnType>
83
83
</ReturnValue>
84
84
<Docs>
85
-
<summary>To be added.</summary>
86
-
<value>To be added.</value>
85
+
<summary>Gets the size in bytes on exit from the reported collection.</summary>
86
+
<value>A number representing the size in bytes on exit from the reported collection.</value>
87
87
<remarks>To be added.</remarks>
88
88
</Docs>
89
89
</Member>
@@ -103,8 +103,8 @@
103
103
<ReturnType>System.Int64</ReturnType>
104
104
</ReturnValue>
105
105
<Docs>
106
-
<summary>To be added.</summary>
107
-
<value>To be added.</value>
106
+
<summary>Gets the size in bytes on entry to the reported collection.</summary>
107
+
<value>A number representing the size in bytes on entry to the reported collection.</value>
Copy file name to clipboardExpand all lines: xml/System/GCKind.xml
+27-6Lines changed: 27 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,17 @@
13
13
<BaseTypeName>System.Enum</BaseTypeName>
14
14
</Base>
15
15
<Docs>
16
-
<summary>To be added.</summary>
17
-
<remarks>To be added.</remarks>
16
+
<summary>Specifies the kind of a garbage collection.</summary>
17
+
<remarks>
18
+
<formattype="text/markdown"><![CDATA[
19
+
20
+
## Remarks
21
+
22
+
A GC can be one of the 3 kinds - ephemeral, full blocking or background.
23
+
Their frequencies are very different. Ephemeral GCs happen much more often than the other two kinds. Background GCs usually happen infrequently, and full blocking GCs usually happen very infrequently. In order to sample the very infrequent GCs, collections are separated into kinds so callers can ask for all three kinds while maintaining a reasonable sampling rate, e.g. if you are sampling once every second, without this distinction, you may never observe a background GC. With this distinction, you can always get info of the last GC of the kind you specify.
Copy file name to clipboardExpand all lines: xml/System/GCMemoryInfo.xml
+43-24Lines changed: 43 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,16 @@
23
23
</Attributes>
24
24
<Docs>
25
25
<summary>Provides a set of APIs that can be used to retrieve garbage collection information.</summary>
26
-
<remarks>To be added.</remarks>
26
+
<remarks>
27
+
<formattype="text/markdown"><![CDATA[
28
+
29
+
## Remarks
30
+
31
+
A GC is identified by its Index. which starts from 1 and increases with each GC (see more explanation of it in the Index prooperty).
32
+
If you are asking for a GC that does not exist, eg, you called the GC.GetGCMemoryInfo API before a GC happened, or you are 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. So you can use Index 0 to detect that no GCs, or no GCs of the kind you specified have happened.
33
+
34
+
]]></format>
35
+
</remarks>
27
36
</Docs>
28
37
<Members>
29
38
<MemberMemberName="Compacted">
@@ -42,8 +51,9 @@
42
51
<ReturnType>System.Boolean</ReturnType>
43
52
</ReturnValue>
44
53
<Docs>
45
-
<summary>To be added.</summary>
46
-
<value>To be added.</value>
54
+
<summary>Specifies if this is a compacting GC or not.</summary>
55
+
<value>
56
+
<seelangword="true" /> if this is a compacting GC; <seelangword="false" /> otherwise.</value>
47
57
<remarks>To be added.</remarks>
48
58
</Docs>
49
59
</Member>
@@ -63,8 +73,9 @@
63
73
<ReturnType>System.Boolean</ReturnType>
64
74
</ReturnValue>
65
75
<Docs>
66
-
<summary>To be added.</summary>
67
-
<value>To be added.</value>
76
+
<summary>Specifies if this is a concurrent GC (BGC) or not.</summary>
77
+
<value>
78
+
<seelangword="true" /> if this is a concurrent GC (BGC); <seelangword="false" /> otherwise.</value>
68
79
<remarks>To be added.</remarks>
69
80
</Docs>
70
81
</Member>
@@ -84,8 +95,8 @@
84
95
<ReturnType>System.Int64</ReturnType>
85
96
</ReturnValue>
86
97
<Docs>
87
-
<summary>To be added.</summary>
88
-
<value>To be added.</value>
98
+
<summary>Gets the number of objects ready for finalization this GC observed.</summary>
99
+
<value>A number representing the total objects observed by this GC that are ready for finalization.</value>
89
100
<remarks>To be added.</remarks>
90
101
</Docs>
91
102
</Member>
@@ -146,8 +157,8 @@ The memory after `OBJ_D` is not considered part of the `FragmentedBytes` but wil
146
157
<ReturnType>System.Int32</ReturnType>
147
158
</ReturnValue>
148
159
<Docs>
149
-
<summary>To be added.</summary>
150
-
<value>To be added.</value>
160
+
<summary>Gets the generation this GC collected. Collecting a generation means all its younger generation(s) are also collected.</summary>
161
+
<value>A number representing the generation this GC collected.</value>
151
162
<remarks>To be added.</remarks>
152
163
</Docs>
153
164
</Member>
@@ -167,8 +178,8 @@ The memory after `OBJ_D` is not considered part of the `FragmentedBytes` but wil
<summary>Gets the generation information for all generations.</summary>
182
+
<value>A read-only span containing the generation information for all generations.</value>
172
183
<remarks>To be added.</remarks>
173
184
</Docs>
174
185
</Member>
@@ -234,8 +245,9 @@ The memory after `OBJ_D` is not considered part of the `FragmentedBytes` but wil
234
245
<ReturnType>System.Int64</ReturnType>
235
246
</ReturnValue>
236
247
<Docs>
237
-
<summary>To be added.</summary>
238
-
<value>To be added.</value>
248
+
<summary>The index of this GC. GC indices start with 1 and get increased at the beginning of a GC.
249
+
Since the information is updated at the end of a GC, this means you can get the information for a BGC with a smaller index than a foreground GC finished earlier.</summary>
250
+
<value>A number representing the index of this GC.</value>
239
251
<remarks>To be added.</remarks>
240
252
</Docs>
241
253
</Member>
@@ -278,8 +290,8 @@ The memory after `OBJ_D` is not considered part of the `FragmentedBytes` but wil
0 commit comments