public ProfilerProperty GetDetailedProperty() { ProfilerProperty rootProfilerProperty = this.m_Window.GetRootProfilerProperty(this.sortType); bool enterChildren = true; string selectedPropertyPath = ProfilerDriver.selectedPropertyPath; ProfilerProperty result; while (rootProfilerProperty.Next(enterChildren)) { string propertyPath = rootProfilerProperty.propertyPath; if (propertyPath == selectedPropertyPath) { ProfilerProperty profilerProperty = new ProfilerProperty(); profilerProperty.InitializeDetailProperty(rootProfilerProperty); result = profilerProperty; return(result); } if (rootProfilerProperty.HasChildren) { enterChildren = this.IsExpanded(propertyPath); } } result = null; return(result); }
public ProfilerProperty GetDetailedProperty(ProfilerProperty property) { bool enterChildren = true; string selectedPropertyPath = ProfilerDriver.selectedPropertyPath; while (property.Next(enterChildren)) { string propertyPath = property.propertyPath; if (propertyPath == selectedPropertyPath) { ProfilerProperty profilerProperty = new ProfilerProperty(); profilerProperty.InitializeDetailProperty(property); return(profilerProperty); } if (property.HasChildren) { enterChildren = this.IsExpanded(propertyPath); } } return(null); }
public ProfilerProperty GetDetailedProperty(ProfilerProperty property) { bool enterChildren = true; string selectedPropertyPath = ProfilerDriver.selectedPropertyPath; while (property.Next(enterChildren)) { string propertyPath = property.propertyPath; if (propertyPath == selectedPropertyPath) { ProfilerProperty profilerProperty = new ProfilerProperty(); profilerProperty.InitializeDetailProperty(property); return profilerProperty; } if (property.HasChildren) { enterChildren = this.IsExpanded(propertyPath); } } return null; }