コード例 #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
ファイル: PythonProfilingPackage.cs プロジェクト: zooba/PTVS
        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);
        }