示例#1
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            ThisGuiModelData = new MainGuiModel();
            setActions();
        }
示例#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 };
        }
示例#3
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            setActions();
            setGuiModel();
            setEvenets();
        }
示例#4
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

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

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

            manageAppExit();
            initThisGuiModelData();
            setActions();
            setEvenets();
            setCommands();
            setDirectoryMonitor();
        }
示例#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;
        }
示例#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();
        }
示例#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();
        }
示例#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();
        }
示例#11
0
 public CallbacksManager(ProfilerPluginBase pluginContext, GuiModelBase guiModelData)
     : base(pluginContext, guiModelData)
 {
 }
示例#12
0
 public Main(ProfilerPluginBase pluginContext)
 {
     InitializeComponent();
     this.DataContext = new MainViewModel(pluginContext);
 }
示例#13
0
 public JsonLoader(ProfilerPluginBase context, MainGuiModel mainGuiModel)
 {
     _context = context;
     _mainGuiModel = mainGuiModel;
 }
示例#14
0
 public ProjectReleasesLoader(ProfilerPluginBase context, MainGuiModel mainGuiModel)
 {
     _context = context;
     _mainGuiModel = mainGuiModel;
 }