internal static bool IsSame(ProfilingTarget self, ProfilingTarget other) { if (self == null) { return(other == null); } else if (other != null) { return(ProjectTarget.IsSame(self.ProjectTarget, other.ProjectTarget) && StandaloneTarget.IsSame(self.StandaloneTarget, other.StandaloneTarget)); } return(false); }
internal StandaloneTarget Clone() { var res = new StandaloneTarget(); if (PythonInterpreter != null) { res.PythonInterpreter = PythonInterpreter.Clone(); } res.InterpreterPath = InterpreterPath; res.WorkingDirectory = WorkingDirectory; res.Script = Script; res.Arguments = Arguments; return(res); }
internal static bool IsSame(StandaloneTarget self, StandaloneTarget other) { if (self == null) { return(other == null); } else if (other != null) { return(PythonInterpreter.IsSame(self.PythonInterpreter, other.PythonInterpreter) && self.InterpreterPath == other.InterpreterPath && self.WorkingDirectory == other.WorkingDirectory && self.Script == other.Script && self.Arguments == other.Arguments); } return(false); }
public StandaloneTargetView(IServiceProvider serviceProvider, StandaloneTarget template) : this(serviceProvider) { if (template.PythonInterpreter != null) { if (IsAnyAvailableInterpreters) { Interpreter = AvailableInterpreters .FirstOrDefault(v => v.Id == template.PythonInterpreter.Id); } else { Interpreter = _customInterpreter; } } else { InterpreterPath = template.InterpreterPath; } ScriptPath = template.Script; WorkingDirectory = template.WorkingDirectory; Arguments = template.Arguments; }
internal ProfilingTarget Clone() { var res = new ProfilingTarget(); if (ProjectTarget != null) { res.ProjectTarget = ProjectTarget.Clone(); } if (StandaloneTarget != null) { res.StandaloneTarget = StandaloneTarget.Clone(); } if (Reports != null) { res.Reports = Reports.Clone(); } res.UseVTune = UseVTune; return(res); }
/// <summary> /// Create a StandaloneTargetView with values taken from a template. /// </summary> public StandaloneTargetView(StandaloneTarget template) : this(PythonProfilingPackage.Instance, template) { }