static void SetupProfiledConnection(int connId)
 {
     ProfilerDriver.connectedProfiler = ProfilerDriver.GetAvailableProfilers().FirstOrDefault(id => id == connId);
     Menu.SetChecked("Edit/Record", s_SlaveProfilerWindow.IsSetToRecord());
     Menu.SetChecked("Edit/Deep Profiling", ProfilerDriver.deepProfiling);
     EditorApplication.UpdateMainWindowTitle();
     s_SlaveProfilerWindow.Repaint();
 }