Beispiel #1
0
        public MainVm()
        {
            Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High;
            Thread.CurrentThread.Priority = System.Threading.ThreadPriority.Highest;

            DiagnosticHelper.SetNativeThreadAffinity();

            _dataFormer = new PlotDataFormer();

            Threads          = new ObservableCollection <ThreadInfo>();
            ThreadPlotModel  = new PlotModel();
            ThreadPriorities = GetPriorities();

            _timer = new Timer(Loop, null, 1000, 1000);
        }