internal SessionNode ProfileTarget(ProfilingTarget target, bool openReport = true) { bool save; string name = target.GetProfilingName(this, out save); var session = ShowPerformanceExplorer().Sessions.AddTarget(target, name, save); StartProfiling(target, session, openReport); return(session); }
internal SessionNode ProfileTarget(ProfilingTarget target, bool openReport = true) { return(ThreadHelper.Generic.Invoke(() => { bool save; string name = target.GetProfilingName(this, out save); var session = ShowPerformanceExplorer().Sessions.AddTarget(target, name, save); StartProfiling(target, session, openReport); return session; })); }
internal SessionNode ProfileTarget(ProfilingTarget target, bool openReport = true) { return(ThreadHelper.JoinableTaskFactory.Run(async() => { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); bool save; string name = target.GetProfilingName(this, out save); var session = ShowPerformanceExplorer().Sessions.AddTarget(target, name, save); StartProfiling(target, session, openReport); return session; })); }
internal SessionNode ProfileTarget(ProfilingTarget target, bool openReport = true) { return ThreadHelper.Generic.Invoke(() => { bool save; string name = target.GetProfilingName(this, out save); var session = ShowPerformanceExplorer().Sessions.AddTarget(target, name, save); StartProfiling(target, session, openReport); return session; }); }