public CoreThreadPool(ClrRuntime runtime) { (this.runtime, heap, domain) = (runtime, runtime.Heap, runtime.AppDomains[0]); driver = new NetCoreClrDriver(runtime); var tp = runtime.ThreadPool; TotalThreads = tp.TotalThreads; RunningThreads = tp.RunningThreads; IdleThreads = tp.IdleThreads; MinThreads = tp.MinThreads; MaxThreads = tp.MaxThreads; MinCompletionPorts = tp.MinCompletionPorts; MaxCompletionPorts = tp.MaxCompletionPorts; CpuUtilization = tp.CpuUtilization; FreeCompletionPortCount = tp.FreeCompletionPortCount; MaxFreeCompletionPorts = tp.MaxFreeCompletionPorts; }
public TasksSpy(ClrRuntime runtime) { (this.runtime, heap) = (runtime, runtime.Heap); clrDriver = runtime.ClrInfo.Flavor == ClrFlavor.Core ? (IClrDriver) new NetCoreClrDriver(runtime) : new NetFrameworkClrDriver(runtime); }