Skip to content

Commit e610875

Browse files
author
Wenbo
committed
Update the doc about System.Diagnostics.Process regarding dotnet runtime issue 97132
1 parent 02cd139 commit e610875

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

xml/System.Diagnostics/Process.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@
112112

113113
A system process is uniquely identified on the system by its process identifier. Like many Windows resources, a process is also identified by its handle, which might not be unique on the computer. A handle is the generic term for an identifier of a resource. The operating system persists the process handle, which is accessed through the <xref:System.Diagnostics.Process.Handle%2A> property of the <xref:System.Diagnostics.Process> component, even when the process has exited. Thus, you can get the process's administrative information, such as the <xref:System.Diagnostics.Process.ExitCode%2A> (usually either zero for success or a nonzero error code) and the <xref:System.Diagnostics.Process.ExitTime%2A>. Handles are an extremely valuable resource, so leaking handles is more virulent than leaking memory.
114114

115+
In the MacOS, the following properties will return 0:
116+
- <xref:System.Diagnostics.Process.peakvirtualmemorysize64?displayProperty=nameWithType>
117+
- <xref:System.Diagnostics.Process.PrivateMemorySize64?displayProperty=nameWithType>
118+
- <xref:System.Diagnostics.Process.PeakWorkingSet64?displayProperty=nameWithType>
119+
115120
> [!NOTE]
116121
> This class contains a link demand and an inheritance demand at the class level that applies to all members. A <xref:System.Security.SecurityException> is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands).
117122

0 commit comments

Comments
 (0)