A class in Root.Township, the global namespace.
Obsolete: reads total CPU use and one process's memory. Marked to be replaced by the new analytics system.
Constructors
| Member | What it is |
|---|
ProcessDiagnostics(Process processToTrack) | Creates a ProcessDiagnostics from processToTrack. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private PerformanceCounter cpuCounter | Performance counter for total processor time. |
private Process processToTrack | Process whose memory is read. |
Properties
| Member | What it is |
|---|
float CPUPercentage { get; } | Total CPU use across all cores, from a performance counter. |
long MemorySizeInBytes { get; } | Working set of the tracked process as of the last UpdateValues. |
Methods
| Member | What it is |
|---|
void UpdateValues() | Refreshes the process info. |