Share via


ProcessDiagnosticInfo Class

Definition

Provides diagnostic information about a process, such as CPU usage, disk usage, memory usage and so on.

public ref class ProcessDiagnosticInfo sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ProcessDiagnosticInfo final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ProcessDiagnosticInfo
Public NotInheritable Class ProcessDiagnosticInfo
Inheritance
Object Platform::Object IInspectable ProcessDiagnosticInfo
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Version history

Windows version SDK version Value added
1709 16299 GetAppDiagnosticInfos
1709 16299 IsPackaged
1709 16299 TryGetForProcessId

Properties

CpuUsage

Gets the CPU time used by the process.

DiskUsage

Gets the disk I/O usage of the process.

ExecutableFileName

Gets the name of the executable file for the process.

IsPackaged

Gets a Boolean value indicating whether or not this ProcessDiagnosticInfo instance has any related UWP information.

MemoryUsage

Gets memory usage data for the process.

Parent

Gets the ProcessDiagnosticInfo for the parent process.

ProcessId

Gets the unique process ID.

ProcessStartTime

Gets the time the process was started.

Methods

GetAppDiagnosticInfos()

Gets one or more AppDiagnosticInfo objects if the IsPackaged property is true.

GetForCurrentProcess()

Gets the ProcessDiagnosticInfo for the currently running process.

GetForProcesses()

Gets a list of ProcessDiagnosticInfo objects for all running processes that are accessible to the caller.

TryGetForProcessId(UInt32)

Gets a ProcessDiagnosticInfo object for the specified process.

Applies to