Exemplo n.º 1
0
        static int[] GetDefaultVisibleColumns(MarkerColumnFilter.Mode mode)
        {
            int[] visibleColumns;

            switch (mode)
            {
            default:
            case MarkerColumnFilter.Mode.Custom:
            case MarkerColumnFilter.Mode.TimeAndCount:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.Depth,
                    (int)MyColumns.Median,
                    (int)MyColumns.MedianBar,
                    (int)MyColumns.Mean,
                    (int)MyColumns.Min,
                    (int)MyColumns.Max,
                    (int)MyColumns.Range,
                    (int)MyColumns.Count,
                    (int)MyColumns.CountMean,
                    (int)MyColumns.AtMedian,
                };
                break;

            case MarkerColumnFilter.Mode.Time:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.Depth,
                    (int)MyColumns.Median,
                    (int)MyColumns.MedianBar,
                    (int)MyColumns.Min,
                    (int)MyColumns.Max,
                    (int)MyColumns.Range,
                    (int)MyColumns.AtMedian,
                };
                break;

            case MarkerColumnFilter.Mode.Totals:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.Depth,
                    (int)MyColumns.Total,
                    (int)MyColumns.TotalBar,
                };
                break;

            case MarkerColumnFilter.Mode.TimeWithTotals:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.Depth,
                    (int)MyColumns.Median,
                    (int)MyColumns.MedianBar,
                    (int)MyColumns.Min,
                    (int)MyColumns.Max,
                    (int)MyColumns.Range,
                    (int)MyColumns.AtMedian,
                    (int)MyColumns.Total,
                    (int)MyColumns.TotalBar,
                };
                break;

            case MarkerColumnFilter.Mode.CountTotals:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.Depth,
                    (int)MyColumns.Count,
                    (int)MyColumns.CountBar,
                };
                break;

            case MarkerColumnFilter.Mode.CountPerFrame:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.Depth,
                    (int)MyColumns.CountMean,
                    (int)MyColumns.CountMeanBar,
                };
                break;

            case MarkerColumnFilter.Mode.Depth:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.Depth,
                };
                break;

            case MarkerColumnFilter.Mode.Threads:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.Threads,
                };
                break;
            }

            return(visibleColumns);
        }
Exemplo n.º 2
0
        private static int[] GetDefaultVisibleColumns(MarkerColumnFilter.Mode mode)
        {
            int[] visibleColumns;

            switch (mode)
            {
            default:
            case MarkerColumnFilter.Mode.Custom:
            case MarkerColumnFilter.Mode.TimeAndCount:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.LeftMedian,
                    (int)MyColumns.LeftBar,
                    (int)MyColumns.RightBar,
                    (int)MyColumns.RightMedian,
                    (int)MyColumns.Diff,
                    (int)MyColumns.AbsDiff,
                    (int)MyColumns.LeftCount,
                    (int)MyColumns.RightCount,
                    (int)MyColumns.CountDiff,
                };
                break;

            case MarkerColumnFilter.Mode.Time:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.LeftMedian,
                    (int)MyColumns.LeftBar,
                    (int)MyColumns.RightBar,
                    (int)MyColumns.RightMedian,
                    (int)MyColumns.Diff,
                    (int)MyColumns.AbsDiff,
                };
                break;

            case MarkerColumnFilter.Mode.Totals:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.LeftTotal,
                    (int)MyColumns.LeftTotalBar,
                    (int)MyColumns.RightTotalBar,
                    (int)MyColumns.RightTotal,
                    (int)MyColumns.TotalDiff,
                    (int)MyColumns.AbsTotalDiff,
                };
                break;

            case MarkerColumnFilter.Mode.TimeWithTotals:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.LeftMedian,
                    (int)MyColumns.LeftBar,
                    (int)MyColumns.RightBar,
                    (int)MyColumns.RightMedian,
                    (int)MyColumns.AbsDiff,
                    (int)MyColumns.LeftTotal,
                    (int)MyColumns.LeftTotalBar,
                    (int)MyColumns.RightTotalBar,
                    (int)MyColumns.RightTotal,
                    (int)MyColumns.AbsTotalDiff,
                };
                break;

            case MarkerColumnFilter.Mode.CountTotals:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.LeftCount,
                    (int)MyColumns.LeftCountBar,
                    (int)MyColumns.RightCountBar,
                    (int)MyColumns.RightCount,
                    (int)MyColumns.CountDiff,
                    (int)MyColumns.AbsCountDiff,
                };
                break;

            case MarkerColumnFilter.Mode.CountPerFrame:
                visibleColumns = new int[] {
                    (int)MyColumns.Name,
                    (int)MyColumns.LeftCountMean,
                    (int)MyColumns.LeftCountMeanBar,
                    (int)MyColumns.RightCountMeanBar,
                    (int)MyColumns.RightCountMean,
                    (int)MyColumns.CountMeanDiff,
                    (int)MyColumns.AbsCountMeanDiff,
                };
                break;
            }

            return(visibleColumns);
        }