private FunctionDataValue GetValue(FunctionData[] framesData, UnityEditorInternal.Profiling.ProfilerColumn column)
        {
            var functionDataValue = new FunctionDataValue {
                column = ProfilerColumnNames[(int)column]
            };
            var getFunctionValue = getFunctionValues[(int)column];

            if (column != UnityEditorInternal.Profiling.ProfilerColumn.GCMemory)
            {
                functionDataValue.value =
                    AggregateValues(framesData.Select(getFunctionValue)).ToString("F2");
            }
            else
            {
                functionDataValue.value =
                    ByteSize.FromBytes(AggregateValues(framesData.Select(getFunctionValue)))
                    .ToString();
            }
            return(functionDataValue);
        }
Example #2
0
        public string GetValue(UnityEditorInternal.Profiling.ProfilerColumn column)
        {
            var columnName = ColumnNames[(int)column];

            return(FindDataValue(columnName).value);
        }