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)); }
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)); }
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); }