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
<paramname="precise">If <seelangword="true" />, gather a precise number; otherwise, gather an approximate count. Gathering a precise value entails a significant performance penalty.</param>
933
+
<summary>Gets a count of the bytes allocated over the lifetime of the process.</summary>
934
+
<returns>The total number of bytes allocated over the lifetime of the process.</returns>
Copy file name to clipboardExpand all lines: xml/System/GCMemoryInfo.xml
+44-14Lines changed: 44 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@
19
19
</Attribute>
20
20
</Attributes>
21
21
<Docs>
22
-
<summary>To be added.</summary>
22
+
<summary>Provides a set of APIs that can be used to retrieve garbage collection information.</summary>
23
23
<remarks>To be added.</remarks>
24
24
</Docs>
25
25
<Members>
@@ -39,9 +39,27 @@
39
39
<ReturnType>System.Int64</ReturnType>
40
40
</ReturnValue>
41
41
<Docs>
42
-
<summary>To be added.</summary>
43
-
<value>To be added.</value>
44
-
<remarks>To be added.</remarks>
42
+
<summary>Gets the total fragmentation when the last garbage collection occurred.</summary>
43
+
<value>An integer representing the total fragmentation when the last garbage collection occurred.</value>
44
+
<remarks>
45
+
<formattype="text/markdown"><![CDATA[
46
+
47
+
## Remarks
48
+
49
+
For example, the application has the following five objects:
50
+
51
+
`| OBJ_A | OBJ_B | OBJ_C | OBJ_D | OBJ_E |`
52
+
53
+
If `OBJ_B`, `OBJ_C`, and `OBJ_E` are garbage collected but the heap is not compacted, the resulting heap will look like the following:
54
+
55
+
`| OBJ_A | F | OBJ_D |`
56
+
57
+
The memory between `OBJ_A` and `OBJ_D`, which is marked `F`, is considered part of the `FragmentedBytes` and is used to allocate new objects.
58
+
59
+
The memory after `OBJ_D` is not considered part of the `FragmentedBytes` but will also be used to allocate new objects.
60
+
61
+
]]></format>
62
+
</remarks>
45
63
</Docs>
46
64
</Member>
47
65
<MemberMemberName="HeapSizeBytes">
@@ -60,8 +78,8 @@
60
78
<ReturnType>System.Int64</ReturnType>
61
79
</ReturnValue>
62
80
<Docs>
63
-
<summary>To be added.</summary>
64
-
<value>To be added.</value>
81
+
<summary>Gets the total heap size when the last garbage collection occurred.</summary>
82
+
<value>The total heap size, in bytes, when the last garbage collection occurred.</value>
65
83
<remarks>To be added.</remarks>
66
84
</Docs>
67
85
</Member>
@@ -81,8 +99,8 @@
81
99
<ReturnType>System.Int64</ReturnType>
82
100
</ReturnValue>
83
101
<Docs>
84
-
<summary>To be added.</summary>
85
-
<value>To be added.</value>
102
+
<summary>Gets the high memory load threshold when the last garbage collection occured.</summary>
103
+
<value>The high memory load threshold, in bytes, when the last garbage collection occured.</value>
86
104
<remarks>To be added.</remarks>
87
105
</Docs>
88
106
</Member>
@@ -102,8 +120,8 @@
102
120
<ReturnType>System.Int64</ReturnType>
103
121
</ReturnValue>
104
122
<Docs>
105
-
<summary>To be added.</summary>
106
-
<value>To be added.</value>
123
+
<summary>Gets the memory load when the last garbage collection occurred.</summary>
124
+
<value>The memory load when the last garbage collection occurred.</value>
107
125
<remarks>To be added.</remarks>
108
126
</Docs>
109
127
</Member>
@@ -123,10 +141,22 @@
123
141
<ReturnType>System.Int64</ReturnType>
124
142
</ReturnValue>
125
143
<Docs>
126
-
<summary>To be added.</summary>
127
-
<value>To be added.</value>
128
-
<remarks>To be added.</remarks>
144
+
<summary>Gets the total available memory for the garbage collector to use when the last garbage collection occurred.</summary>
145
+
<value>The total available memory, in bytes, for the garbage collector to use when the last garbage collection occurred.</value>
146
+
<remarks>
147
+
<formattype="text/markdown"><![CDATA[
148
+
149
+
## Remarks
150
+
151
+
This property value will be the value of the `COMPlus_GCHeapHardLimit` environment variable, or the `Server.GC.HeapHardLimit` value in `runtimeconfig.json`, if either is set.
152
+
153
+
If the program is run in a container, this value is an implementation-defined fraction of the container's size.
154
+
155
+
Otherwise, the value of the property is the physical memory on the machine that was available for the garbage collector to use when the last garbage collection occurred.
0 commit comments