Class ProcessInfo
Process Info for a device process.
Inherited Members
Namespace: Microsoft.XboxStudios.DeviceConsole.Environments.Performance
Assembly: DeviceConsole.Environments.dll
Syntax
public class ProcessInfo
Constructors
View SourceProcessInfo(string, string, uint, uint, float, ulong, ulong, ulong, ulong)
Initializes a new instance of the ProcessInfo class.
Declaration
public ProcessInfo(string name, string userName, uint processId, uint sessionId, float cpuUsage, ulong pageFile, ulong workingSet, ulong privateWorkingSet, ulong virtualSize)
Parameters
Type | Name | Description |
---|---|---|
string | name | The process name. |
string | userName | The user the process is running as. |
uint | processId | The process id (pid). |
uint | sessionId | The session id. |
float | cpuUsage | The CPU Usage as a percentage of available CPU resources (0-100). |
ulong | pageFile | The Page file usage info, in bytes. |
ulong | workingSet | The working set size, in bytes. |
ulong | privateWorkingSet | The package working set, in bytes. |
ulong | virtualSize | The virtual size, in bytes. |
Properties
View SourceCpuUsage
Gets the CPU Usage as a percentage of available CPU resources (0-100).
Declaration
public float CpuUsage { get; }
Property Value
Type | Description |
---|---|
float |
Name
Gets the process name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
PageFile
Gets the Page file usage info, in bytes.
Declaration
public ulong PageFile { get; }
Property Value
Type | Description |
---|---|
ulong |
PrivateWorkingSet
Gets the package working set, in bytes.
Declaration
public ulong PrivateWorkingSet { get; }
Property Value
Type | Description |
---|---|
ulong |
ProcessId
Gets the process id (pid).
Declaration
public uint ProcessId { get; }
Property Value
Type | Description |
---|---|
uint |
SessionId
Gets the session id.
Declaration
public uint SessionId { get; }
Property Value
Type | Description |
---|---|
uint |
UserName
Gets the user the process is running as.
Declaration
public string UserName { get; }
Property Value
Type | Description |
---|---|
string |
VirtualSize
Gets the virtual size, in bytes.
Declaration
public ulong VirtualSize { get; }
Property Value
Type | Description |
---|---|
ulong |
WorkingSet
Gets the working set size, in bytes.
Declaration
public ulong WorkingSet { get; }
Property Value
Type | Description |
---|---|
ulong |