コード例 #1
0
ファイル: ProfilerWindow.cs プロジェクト: randomize/VimConfig
 private void DrawCPUOrRenderingPane(ProfilerHierarchyGUI mainPane, ProfilerHierarchyGUI detailPane, ProfilerTimelineGUI timelinePane)
 {
     ProfilerProperty property = this.CreateProperty(false);
     this.DrawCPUOrRenderingToolbar(property);
     if (!CheckFrameData(property))
     {
         property.Cleanup();
     }
     else if ((timelinePane != null) && (this.m_ViewType == ProfilerViewType.Timeline))
     {
         float height = this.m_VertSplit.realSizes[1];
         height -= EditorStyles.toolbar.CalcHeight(GUIContent.none, 10f) + 2f;
         timelinePane.DoGUI(this.GetActiveVisibleFrameIndex(), base.position.width, base.position.height - height, height);
         property.Cleanup();
     }
     else
     {
         SplitterGUILayout.BeginHorizontalSplit(this.m_ViewSplit, new GUILayoutOption[0]);
         GUILayout.BeginVertical(new GUILayoutOption[0]);
         bool expandAll = false;
         mainPane.DoGUI(property, this.m_SearchString, expandAll);
         property.Cleanup();
         GUILayout.EndVertical();
         GUILayout.BeginVertical(new GUILayoutOption[0]);
         ProfilerProperty property2 = this.CreateProperty(true);
         ProfilerProperty detailedProperty = mainPane.GetDetailedProperty(property2);
         property2.Cleanup();
         if (detailedProperty != null)
         {
             detailPane.DoGUI(detailedProperty, string.Empty, expandAll);
             detailedProperty.Cleanup();
         }
         else
         {
             DrawEmptyCPUOrRenderingDetailPane();
         }
         GUILayout.EndVertical();
         SplitterGUILayout.EndHorizontalSplit();
     }
 }