6 references to ProcPid
System.Private.CoreLib (6)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (5)
53
internal static string GetStatusFilePathForProcess(
ProcPid
pid) =>
54
pid ==
ProcPid
.Self ? $"{RootPath}{Self}{StatusFileName}" :
57
internal static bool TryReadStatusFile(
ProcPid
pid, out ParsedStatus result)
61
Debug.Assert(!b || (
ProcPid
)result.Pid == pid || pid ==
ProcPid
.Self, "Expected process ID from status file to match supplied pid");
src\libraries\System.Private.CoreLib\src\System\Environment.Linux.cs (1)
10
public static long WorkingSet => (long)(Interop.procfs.TryReadStatusFile(Interop.procfs.
ProcPid
.Self, out Interop.procfs.ParsedStatus status) ? status.VmRSS : 0);