private void ShowFoundItemInProfiler(HierarchyFrameDataView frameData, int matchingItemId, int frameIndex) { var goInstanceId = frameData.GetItemInstanceID(matchingItemId); var foundObject = EditorUtility.InstanceIDToObject(goInstanceId); //Selection.activeObject = foundObject; EditorGUIUtility.PingObject(foundObject); var profilerWindowInterface = new ProfilerWindowInterface(); profilerWindowInterface.OpenProfilerOrUseExisting(); profilerWindowInterface.JumpToFrame(frameIndex + 1); var markerName = frameData.GetItemName(matchingItemId); profilerWindowInterface.SetProfilerWindowMarkerName(markerName, new List <string>() { LookInThread }); ProfilerDriver.enabled = false; EditorApplication.isPaused = true; }
private void InitializePrifilerWindowInterface() { _profilerWindowInterface = new ProfilerWindowInterface(); _profilerWindowInterface.OpenProfilerOrUseExisting(); }