UtilProcessGetProcessRamPercentUsage(Process) 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(
Process pr
)
Public Shared Function GetProcessRamPercentUsage (
pr As Process
) As Single
Dim pr As Process
Dim returnValue As Single
returnValue = UtilProcess.GetProcessRamPercentUsage(pr)
public:
static float GetProcessRamPercentUsage(
Process^ pr
)
static member GetProcessRamPercentUsage :
pr : Process -> float32
No code example is currently available or this language may not be supported.
- pr Process
-
The Process.
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)
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.