private static WindowAction OpenProfilerAction() { var action = WindowAction.CreateWindowMenuItem("OpenProfilerForWindow", (v, a) => { OpenProfiler(PerformanceTrackerMonitoringService.GetWindowPaintMarker(v), Analytics.ActionSource.EditorWindowMenu); }, "Window Performance/Open Profiler"); return(action); }
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); }
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); }