forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read values from /proc/[pid]/status (dotnet/corefx#41122)
* Fix dotnet/corefx#23449 - Read values from /proc/[pid]/status * Fix tests for new returned data from /prod/[pid]/status * Update tests of process info on OSX * Rename property ParsedStatus.pid --> ParsedStatus.Pid * 1. Avoid reallocation of delimiter array 2. Use tryParse instead of Parse to avoid exceptions * Rename static field and mark it as readonly * Change pid from /status to be read only from debug mode * Change status file read implementation using spans * Remove unecessary debug statement * Revert "Remove unecessary debug statement" This reverts commit dotnet/corefx@f60b4f3. * Refactor logic using if statements with reduction in code redundancy * Improve condition arrangement to avoid reading subsequent files if process name doesn't match * Avoid failure of process info creation in case of fail read from one of many files. * Refactor Interop.ProcFsStat for better understanding * Change process creation logic to fail on read /stat * Change logic for unit and non unit values in file Commit migrated from dotnet/corefx@8086f36
- Loading branch information
1 parent
35ed210
commit 4b42cd3
Showing
4 changed files
with
187 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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