Ejemplo n.º 1
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            ThisGuiModelData = new MainGuiModel();
            setActions();
        }
Ejemplo n.º 2
0
        public ChartsViewModelBase(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            CallbacksManagerBase = new CallbacksManagerBase(PluginContext, GuiModelData);
            GuiModelData.PropertyChanged += GuiModelData_PropertyChanged;
            CustomTooltipProvider = new CustomTooltipProvider { GetCustomTooltip = GetCustomTooltip };
        }
Ejemplo n.º 3
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            setActions();
            setGuiModel();
            setEvenets();
        }
Ejemplo n.º 4
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            setActions();
            setGuiModel();
            _callbacksManager = new CallbacksManager(PluginContext, GuiModelData);
            setEvenets();
        }
Ejemplo n.º 5
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            ThisGuiModelData = new MainGuiModel();
            ThisGuiModelData.PropertyChanged += ThisGuiModelData_PropertyChanged;
            setActions();
            setEvenets();
        }
Ejemplo n.º 6
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            manageAppExit();
            initThisGuiModelData();
            setActions();
            setEvenets();
            setCommands();
            setDirectoryMonitor();
        }
Ejemplo n.º 7
0
        public MainViewModelBase(ProfilerPluginBase pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            PluginContext = pluginContext;
            GuiModelData = new GuiModelBase();
            DoOpenFile = new DelegateCommand<CallingMethodInfo>(OpenFile, info => true);
            DoCopySelectedLine = new DelegateCommand<object>(CopySelectedLine, info => true);
            DoCopyAllLines = new DelegateCommand<object>(CopyAllLines, info => true);
            DoOpenPopupToolTip = new DelegateCommand<object>(OpenPopupToolTip, info => true);
            DoOpenCommandToolTip = new DelegateCommand<Command>(OpenCommandToolTip, info => true);
            PluginContext.ProfilerData.ApplicationIdentities.CollectionChanged += ApplicationIdentities_CollectionChanged;
        }
Ejemplo n.º 8
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            SetActions();
            setEvenets();

            GuiModelData.PlotModel.Title = "Commands By Request IDs";
            AddXAxis("Request ID");
            AddYAxis("Commands Count");
            InitPlotModelEvents();
            InitUpdatePlotInterval();
        }
Ejemplo n.º 9
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            SetActions();
            setEvenets();

            GuiModelData.PlotModel.Title = "Commands By Execution Time";
            AddXAxis("Command (Id)");
            AddYAxis("Execution Time (ms)");
            InitPlotModelEvents();
            InitUpdatePlotInterval();
        }
Ejemplo n.º 10
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            SetActions();
            setEvenets();

            GuiModelData.PlotModel.Title = "Commands By Memory Usage";
            AddXAxis("Command (Id)");
            AddYAxis("Allocated Memory Size (KB)");
            InitPlotModelEvents();
            InitUpdatePlotInterval();
        }
Ejemplo n.º 11
0
 public CallbacksManager(ProfilerPluginBase pluginContext, GuiModelBase guiModelData)
     : base(pluginContext, guiModelData)
 {
 }
Ejemplo n.º 12
0
 public Main(ProfilerPluginBase pluginContext)
 {
     InitializeComponent();
     this.DataContext = new MainViewModel(pluginContext);
 }
Ejemplo n.º 13
0
 public JsonLoader(ProfilerPluginBase context, MainGuiModel mainGuiModel)
 {
     _context = context;
     _mainGuiModel = mainGuiModel;
 }
Ejemplo n.º 14
0
 public ProjectReleasesLoader(ProfilerPluginBase context, MainGuiModel mainGuiModel)
 {
     _context = context;
     _mainGuiModel = mainGuiModel;
 }