UnityEditorInternal.ProfilerChart.DoChartGUI C# (CSharp) Method

DoChartGUI() public method

public DoChartGUI ( int currentFrame, ProfilerArea currentArea, Chart &action ) : int
currentFrame int
currentArea ProfilerArea
action Chart
return int
        public int DoChartGUI(int currentFrame, ProfilerArea currentArea, out Chart.ChartAction action)
        {
            if (Event.current.type == EventType.Repaint)
            {
                string[] strArray = new string[this.m_Series.Length];
                for (int i = 0; i < this.m_Series.Length; i++)
                {
                    string propertyName = !this.m_Data.hasOverlay ? this.m_Series[i].identifierName : ("Selected" + this.m_Series[i].identifierName);
                    int statisticsIdentifier = ProfilerDriver.GetStatisticsIdentifier(propertyName);
                    strArray[i] = ProfilerDriver.GetFormattedStatisticsValue(currentFrame, statisticsIdentifier);
                }
                this.m_Data.selectedLabels = strArray;
            }
            if (this.m_Icon == null)
            {
                string icon = "Profiler." + Enum.GetName(typeof(ProfilerArea), this.m_Area);
                this.m_Icon = EditorGUIUtility.TextContentWithIcon(this.GetLocalizedChartName(), icon);
            }
            return this.m_Chart.DoGUI(this.m_Type, currentFrame, this.m_Data, this.m_Area, currentArea == this.m_Area, this.m_Icon, out action);
        }