UtilProcessGetProcessRamPercentUsageAsync(Int32) 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(
int pid
)
Public Shared Function GetProcessRamPercentUsageAsync (
pid As Integer
) As Task(Of Single)
Dim pid As Integer
Dim returnValue As Task(Of Single)
returnValue = UtilProcess.GetProcessRamPercentUsageAsync(pid)
public:
static Task<float>^ GetProcessRamPercentUsageAsync(
int pid
)
static member GetProcessRamPercentUsageAsync :
pid : int -> Task<float32>
No code example is currently available or this language may not be supported.
- pid Int32
-
The process id.
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.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.