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