Пример #1
0
        /// <summary>
        /// Create a preview graph widget
        /// </summary>
        /// <param name="controller">ImGui controller</param>
        /// <param name="clientState">rgat state object</param>
        public PreviewGraphsWidget(ImGuiController controller, rgatState clientState)
        {
            IrregularTimer           = new System.Timers.Timer(600);
            IrregularTimer.Elapsed  += FireTimer;
            IrregularTimer.AutoReset = true;
            IrregularTimer.Start();
            _ImGuiController = controller;

            ForegroundLayoutEngine = new GraphLayoutEngine($"Preview_Foreground");
            ForegroundLayoutEngine.Init(controller.GraphicsDevice);
            BackgroundLayoutEngine = new GraphLayoutEngine($"Preview_Background");
            BackgroundLayoutEngine.Init(controller.GraphicsDevice);
        }
Пример #2
0
        public LogsWindow(rgatState _state)
        {
            _rgatState = _state;
            _LogFilters[(int)Logging.LogFilterType.Debug] = true;
            _LogFilters[(int)Logging.LogFilterType.Info]  = true;
            _LogFilters[(int)Logging.LogFilterType.Error] = true;
            _LogFilters[(int)Logging.LogFilterType.Alert] = true;

            _refreshTimer           = new System.Timers.Timer(750);
            _refreshTimer.Elapsed  += FireTimer;
            _refreshTimer.AutoReset = false;
            _refreshTimer.Start();
        }
Пример #3
0
        //for each saved process we have a thread rendering graph data for previews, heatmaps and conditonals
        public static void launch_saved_process_threads(TraceRecord runRecord, rgatState clientState)
        {
            TraceProcessorWorkers processThreads = new TraceProcessorWorkers();

            runRecord.ProcessThreads = processThreads;
        }