示例#1
0
        protected override object GetAutomationObject(string name)
        {
            if (name == "PythonProfiling")
            {
                if (_profilingAutomation == null)
                {
                    var pane = (PerfToolWindow)JoinableTaskFactory.Run(GetPerfToolWindowAsync);
                    _profilingAutomation = new AutomationProfiling(pane.Sessions);
                }
                return(_profilingAutomation);
            }

            return(base.GetAutomationObject(name));
        }
示例#2
0
        protected override object GetAutomationObject(string name)
        {
            if (name == "PythonProfiling")
            {
                if (_profilingAutomation == null)
                {
                    var pane = (PerfToolWindow)this.FindToolWindow(typeof(PerfToolWindow), 0, true);
                    _profilingAutomation = new AutomationProfiling(pane.Sessions);
                }
                return(_profilingAutomation);
            }

            return(base.GetAutomationObject(name));
        }
示例#3
0
        protected override object GetAutomationObject(string name) {
            if (name == "PythonProfiling") {
                if (_profilingAutomation == null) {
                    var pane = (PerfToolWindow)this.FindToolWindow(typeof(PerfToolWindow), 0, true);
                    _profilingAutomation = new AutomationProfiling(pane.Sessions);
                }
                return _profilingAutomation;
            }

            return base.GetAutomationObject(name);
        }