Backport System.Diagnostics.Process timing XML docs from runtime PR 130794#12887
Open
adamsitnik with Copilot wants to merge 12 commits into
Open
Backport System.Diagnostics.Process timing XML docs from runtime PR 130794#12887adamsitnik with Copilot wants to merge 12 commits into
System.Diagnostics.Process timing XML docs from runtime PR 130794#12887adamsitnik with Copilot wants to merge 12 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR backports documentation updates for System.Diagnostics.Process timing-related members to better describe platform-specific behavior (Windows vs Unix), especially for post-exit property access and associated exceptions.
Changes:
- Updated
StartTimeremarks and exceptions to describe Windows handle-based access and Unix caching/unavailability behavior. - Added/updated exception documentation and platform behavior remarks for
ExitTimeand processor timing properties (PrivilegedProcessorTime,TotalProcessorTime,UserProcessorTime). - Cleaned up placeholder content in affected member docs.
adamsitnik
reviewed
Jul 20, 2026
adamsitnik
left a comment
Member
There was a problem hiding this comment.
@copilot address the feedback
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
adamsitnik
approved these changes
Jul 20, 2026
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process |
gewarren
approved these changes
Jul 20, 2026
| </ReturnValue> | ||
| <Docs> | ||
| <summary>Gets the total processor time for this process.</summary> | ||
| <summary>Gets the amount of time the associated process has spent utilizing the CPU. This value is the sum of the <see cref="P:System.Diagnostics.Process.UserProcessorTime" /> and the <see cref="P:System.Diagnostics.Process.PrivilegedProcessorTime" />.</summary> |
Collaborator
There was a problem hiding this comment.
Suggested change
| <summary>Gets the amount of time the associated process has spent utilizing the CPU. This value is the sum of the <see cref="P:System.Diagnostics.Process.UserProcessorTime" /> and the <see cref="P:System.Diagnostics.Process.PrivilegedProcessorTime" />.</summary> | |
| <summary>Gets the amount of time the associated process has spent utilizing the CPU. This value is the sum of <see cref="P:System.Diagnostics.Process.UserProcessorTime" /> and <see cref="P:System.Diagnostics.Process.PrivilegedProcessorTime" />.</summary> |
|
|
||
| ]]></format> | ||
| </remarks> | ||
| <exception cref="T:System.InvalidOperationException">Attempting to access this property before the process has exited, when no process is associated with this object, or (on Windows) when there is no process handle available.</exception> |
Collaborator
There was a problem hiding this comment.
Suggested change
| <exception cref="T:System.InvalidOperationException">Attempting to access this property before the process has exited, when no process is associated with this object, or (on Windows) when there is no process handle available.</exception> | |
| <exception cref="T:System.InvalidOperationException">You're attempting to access this property before the process has exited, when no process is associated with this object, or (on Windows) when there is no process handle available.</exception> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR backports the
Processtiming-property documentation updates fromdotnet/runtime#130794intodotnet-api-docs. It aligns API reference behavior notes for post-exit access across Windows and Unix.StartTime
InvalidOperationExceptiontext to describe uncached/unavailable Unix and no-handle Windows cases.ExitTime
InvalidOperationExceptiondocumentation for access before process exit, missing association, and Windows no-handle scenarios.Processor timing properties (
PrivilegedProcessorTime,TotalProcessorTime,UserProcessorTime)InvalidOperationExceptionandWin32Exceptionentries consistent with runtime behavior.Doc consistency and cleanup
/xml/System.Diagnostics/Process.xml.