UtilProcessGetProcessRamPercentUsage(Int32) Method
Gets the RAM percentage usage (the amount of physical memory allocated) for the process with the specified process id. (PID).
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static float GetProcessRamPercentUsage(
int pid
)
Public Shared Function GetProcessRamPercentUsage (
pid As Integer
) As Single
Dim pid As Integer
Dim returnValue As Single
returnValue = UtilProcess.GetProcessRamPercentUsage(pid)
public:
static float GetProcessRamPercentUsage(
int pid
)
static member GetProcessRamPercentUsage :
pid : int -> float32
No code example is currently available or this language may not be supported.
- pid Int32
-
The process id.
Single
The resulting RAM percentage usage (the amount of physical memory allocated) for the process with the specified process id. (PID).
This is a code example.
No code example is currently available or this language may not be supported.
Dim pr As Process = Process.GetCurrentProcess()
Dim ramPercent As Single = GetProcessCpuPercentUsage(pr.Id)
Dim str As String = String.Format("Process Name: {0}; RAM Usage: {1:F2}%", pr.ProcessName, ramPercent)
Console.WriteLine(str)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.