Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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;
            }));
        }
Esempio n. 3
0
        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;
            }));
        }
Esempio n. 4
0
        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;
            });
        }