Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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);
        }