private void CreateControls() { _topMethods = new TopMethodsView { Margin = new Thickness(4), HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Stretch, Header = "Top Methods", Inclusive = false }; _callTree = new CallTreeView { Margin = new Thickness(4), HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Stretch, Header = "Call Tree", Inclusive = true }; _hotPathes = new HotPathView1 { Margin = new Thickness(4), HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Stretch, Header = "Hot Paths", Inclusive = false }; }
private void OnEnable() { nodeRoots = new Dictionary <string, List <CallTreeNode> >(); m_TreeView = new CallTreeView(nodeRoots); titleContent = new GUIContent("Callable Tree Explorer", CallTreeView.Styles.Callable); ReloadCallHierarchy(); EditorSceneManager.sceneOpened += Reload; EditorSceneSetup.onSetupLoaded += ReloadSetup; visible = true; }