Ejemplo n.º 1
0
        private static WindowAction OpenProfilerAction()
        {
            var action = WindowAction.CreateWindowMenuItem("OpenProfilerForWindow", (v, a) => {
                OpenProfiler(PerformanceTrackerMonitoringService.GetWindowPaintMarker(v), Analytics.ActionSource.EditorWindowMenu);
            }, "Window Performance/Open Profiler");

            return(action);
        }
Ejemplo n.º 2
0
        private static WindowAction OpenBugReportingToolAction()
        {
            var action = WindowAction.CreateWindowMenuItem("OpenBugReportingTool", (v, a) =>
            {
                OpenBugReportingTool(PerformanceTrackerMonitoringService.GetWindowPaintMarker(v), Analytics.ActionSource.EditorWindowMenu);
            }, "Window Performance/Report Performance Bug");

            return(action);
        }
Ejemplo n.º 3
0
        private static WindowAction StartProfilerRecordingEditorAction()
        {
            var action = WindowAction.CreateWindowMenuItem("StartProfilerRecordingEditor", (window, _action) =>
            {
                // We need to fix this!! See

                var marker = PerformanceTrackerMonitoringService.GetWindowPaintMarker(window);
                ProfilerHelpers.OpenProfiler(marker, profilerWindow =>
                {
                    ProfilerHelpers.SetRecordingEnabled(profilerWindow, true);
                    ProfilerHelpers.StartProfilerRecording("", true, ProfilerDriver.deepProfiling);
                });
            }, "Window Performance/Start Profiler Recording");

            return(action);
        }