Skip to main content

ProcessDiagnostics

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​

MemberWhat it is
ProcessDiagnostics(Process processToTrack)Creates a ProcessDiagnostics from processToTrack.

Fields​

2 private and internal fields
MemberWhat it is
private PerformanceCounter cpuCounterPerformance counter for total processor time.
private Process processToTrackProcess whose memory is read.

Properties​

MemberWhat 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​

MemberWhat it is
void UpdateValues()Refreshes the process info.