public PerformanceCounter add (final String name, final int windowSize) { PerformanceCounter result = new PerformanceCounter(name, windowSize); counters.add(result); return result; }
public PerformanceCounter add (final String name) { PerformanceCounter result = new PerformanceCounter(name); counters.add(result); return result; }
public PerformanceCounter add (final String name) { PerformanceCounter result = new PerformanceCounter(name); counters.add(result); return result; }
public PerformanceCounter add (final String name, final int windowSize) { PerformanceCounter result = new PerformanceCounter(name, windowSize); counters.add(result); return result; }
PerformanceCounter performanceCounter = new PerformanceCounter(); performanceCounter.CategoryName = "Process"; performanceCounter.CounterName = "Working Set"; performanceCounter.InstanceName = Process.GetCurrentProcess().ProcessName; Console.WriteLine(((uint)performanceCounter.NextValue()/1024).ToString("N0"));
public PerformanceCounter add (final String name, final int windowSize) { PerformanceCounter result = new PerformanceCounter(name, windowSize); counters.add(result); return result; }
public PerformanceCounter add (final String name) { PerformanceCounter result = new PerformanceCounter(name); counters.add(result); return result; }
System.Diagnostics.PerformanceCounter ramCounter = new PerformanceCounter("Memory", "Available MBytes"); Debug.Log(ramCounter.NextValue()+"MB");